Skip to content

Commit 5a2a909

Browse files
authored
Merge pull request #82 from pbredenberg/pb/chore-github-actions
ci: migrate to GitHub actions
2 parents e5b73ac + 152b84a commit 5a2a909

File tree

2 files changed

+38
-21
lines changed

2 files changed

+38
-21
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
-
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0 # Fetch all history
13+
-
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version-file: '.nvmrc'
17+
- run: npm i -g npm@8.5.5
18+
- run: npm ci
19+
- run: npm run standards
20+
test:
21+
needs: [ build ]
22+
runs-on: ubuntu-latest
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
node-version: [ 12, 14, 16, 'lts/*', 'latest' ]
27+
steps:
28+
- uses: actions/checkout@v3
29+
-
30+
name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- run: npm i -g npm@8.5.5
35+
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
36+
- run: npm test
37+
- name: Coveralls
38+
uses: coverallsapp/github-action@v1

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)