Skip to content

Commit c43cc0c

Browse files
committedSep 11, 2022
ci: Migrate from Travis to GitHub Actions
1 parent 0b81aa7 commit c43cc0c

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed
 

‎.github/workflows/tests.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
name: Run tests
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# Use the latest version of Node.js, plus the 2 most recent LTS lines
14+
node-version:
15+
- latest
16+
- lts/*
17+
- lts/-1
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: npm
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Run tests
32+
run: npm test

‎.travis.yml

-10
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.