Skip to content

Commit

Permalink
Merge pull request #69 from nukosuke/migrate-to-gh-actions
Browse files Browse the repository at this point in the history
Migrate CI from Travis to GitHub Actions
  • Loading branch information
pbojinov committed Apr 9, 2023
2 parents 35f8bd9 + adf4d64 commit e1d0f4b
Show file tree
Hide file tree
Showing 5 changed files with 15,353 additions and 8 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*.log
node_modules
coverage
package-lock.json
yarn.lock
.nyc_output
.idea
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A tiny Node.js module for retrieving a request's IP address.

![](https://nodei.co/npm/request-ip.png?downloads=true&cacheBust=3)

![](https://travis-ci.org/pbojinov/request-ip.svg?branch=master)
[![CI](https://github.com/pbojinov/request-ip/actions/workflows/ci.yml/badge.svg)](https://github.com/pbojinov/request-ip/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/pbojinov/request-ip/badge.svg)](https://coveralls.io/r/pbojinov/request-ip)
![](https://img.shields.io/npm/l/express.svg)
[![npm version](https://badge.fury.io/js/request-ip.svg)](https://badge.fury.io/js/request-ip)
Expand Down

0 comments on commit e1d0f4b

Please sign in to comment.