Skip to content

Commit 3d8bc75

Browse files
authored
Remove travis/appveyor, switch to actions (#117)
1 parent 63ab4e4 commit 3d8bc75

File tree

5 files changed

+1685
-1399
lines changed

5 files changed

+1685
-1399
lines changed

.github/workflows/Test.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test-linux-macos:
11+
name: Test on ${{ matrix.os }} with Node ${{ matrix.node-version }}
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
17+
node-version: ["lts/*", "node"]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- name: Setup Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.x"
34+
35+
- name: Install build tools (Linux)
36+
if: runner.os == 'Linux'
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y build-essential
40+
41+
- name: Install dependencies
42+
run: |
43+
npm install
44+
45+
- name: Display versions
46+
run: |
47+
node --version
48+
npm --version
49+
python --version || python3 --version
50+
51+
- name: Run tests
52+
run: npm test
53+
54+
test-windows:
55+
name: Test on Windows with Node ${{ matrix.node-version }} (${{ matrix.arch }})
56+
runs-on: windows-latest
57+
58+
strategy:
59+
matrix:
60+
node-version: ["lts/*", "node"]
61+
arch: ["x64", "x86"]
62+
63+
steps:
64+
- name: Configure git line endings
65+
run: git config --global core.autocrlf input
66+
67+
- name: Checkout code
68+
uses: actions/checkout@v4
69+
with:
70+
submodules: recursive
71+
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: ${{ matrix.node-version }}
76+
architecture: ${{ matrix.arch }}
77+
78+
- name: Setup Python
79+
uses: actions/setup-python@v5
80+
with:
81+
python-version: "3.x"
82+
83+
- name: Install dependencies
84+
run: npm install
85+
86+
- name: Display versions
87+
run: |
88+
node --version
89+
npm --version
90+
python --version
91+
92+
- name: Run tests
93+
run: npm test

.travis.yml

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

appveyor.yml

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

0 commit comments

Comments
 (0)