Skip to content

Commit a93bd96

Browse files
authored
Merge pull request #183 from nschonni/github-actions
chore: convert Travis to GitHub Actions
2 parents 6f79de8 + 74a9e89 commit a93bd96

File tree

2 files changed

+40
-20
lines changed

2 files changed

+40
-20
lines changed

.github/workflows/ci.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
node:
15+
- 12
16+
- 14
17+
- 16
18+
- 17
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
21+
steps:
22+
- name: 🛑 Cancel Previous Runs
23+
uses: styfle/[email protected]
24+
with:
25+
access_token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: ⬇️ Checkout
28+
uses: actions/checkout@v2
29+
30+
- name: ⎔ Setup node ${{ matrix.node }}
31+
uses: actions/setup-node@v2
32+
with:
33+
node-version: ${{ matrix.node }}
34+
cache: npm
35+
36+
- name: 📥 Download deps
37+
run: npm ci
38+
39+
- name: Test
40+
run: npm test

.travis.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)