Skip to content

Commit 4cca275

Browse files
committed
CI: migrate from Travis to GitHub Actions (split legacy/modern)
1 parent 923a66e commit 4cca275

File tree

2 files changed

+60
-26
lines changed

2 files changed

+60
-26
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
test-legacy:
11+
name: Legacy Node ${{ matrix.node }} • tests
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
node: ["9", "10"]
16+
runs-on: ubuntu-latest
17+
container:
18+
image: node:${{ matrix.node }}
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Print Node & npm versions
24+
run: |
25+
node -v
26+
npm -v
27+
28+
- name: Install dependencies
29+
run: npm ci || npm i
30+
31+
- name: Run tests (Travis parity)
32+
run: npm run test-with-temp-cloud
33+
34+
test-modern:
35+
name: Node ${{ matrix.node }} • tests
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
node: ["12", "14", "16", "18", "20", "22"]
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
45+
- name: Setup Node
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: ${{ matrix.node }}
49+
cache: npm
50+
51+
- name: Print Node & npm versions
52+
run: |
53+
node -v
54+
npm -v
55+
56+
- name: Install dependencies
57+
run: npm ci || npm i
58+
59+
- name: Run tests (Travis parity)
60+
run: npm run test-with-temp-cloud

.travis.yml

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

0 commit comments

Comments
 (0)