Skip to content

Commit

Permalink
Replace Travis with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Oct 20, 2021
1 parent 9231997 commit 2f64ee7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 15 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,48 @@
name: Tests
'on':
push:
pull_request:

jobs:
test:
runs-on: ubuntu-18.04
name: Node ${{ matrix.node }}
strategy:
matrix:
node:
- '12'
- '14'
- '16'
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test

test-targets:
runs-on: ubuntu-18.04
name: ${{ matrix.targets.name }}
strategy:
matrix:
targets:
- name: 'Lint'
target: 'lint'
- name: 'Coverage'
target: 'coverage'

steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install
- run: npm run ${{ matrix.targets.target }}
- name: Upload coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ matrix.targets.target == 'coverage' }}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 2f64ee7

Please sign in to comment.