Skip to content

Commit 375c59a

Browse files
committed
Setup a workflow for tests
1 parent e9f87a0 commit 375c59a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [ 16.x, 18.x, 20.x ]
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
25+
- name: Install Tox
26+
run: |
27+
pip install --upgrade pip
28+
pip install tox tox-gh-actions
29+
30+
- name: Set up Node
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
registry-url: https://registry.npmjs.org/
35+
36+
- name: Install dependencies
37+
run: npm install
38+
39+
- name: Run Tox Jest
40+
run: tox -e main

0 commit comments

Comments
 (0)