Skip to content

Commit a094805

Browse files
committed
Build: replace travis with GH actions workflow for npm test
1 parent 3aeaeb3 commit a094805

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

.github/workflows/node.js.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
2+
3+
name: Node.js CI
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
# Old infra requires Node 10
19+
node-version: [10.x, 18.x]
20+
21+
steps:
22+
- name: Install xmllint
23+
run: sudo apt-get install -y libxml2-utils
24+
- uses: actions/checkout@v3
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
- run: npm ci
31+
- run: npm test

.travis.yml

-7
This file was deleted.

0 commit comments

Comments
 (0)