Skip to content

Commit

Permalink
Merge pull request #599 from Galooshi/tests-and-node
Browse files Browse the repository at this point in the history
Replace Travis with GitHub Actions, support node 18 + 20
  • Loading branch information
trotzig authored Jan 18, 2024
2 parents b928c02 + 506e596 commit efc5f81
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:cover
- name: Report coverage
env:
CODECLIMATE_REPO_TOKEN: ${{ secrets.CODECLIMATE_REPO_TOKEN }}
run: npx codeclimate-test-reporter < coverage/lcov.info
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.13.0
20.11.0
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit efc5f81

Please sign in to comment.