Skip to content

Commit 10a9d22

Browse files
authored
Merge pull request #7 from KubrickCode/test
Add unit tests of all
2 parents b346850 + a558b5d commit 10a9d22

17 files changed

Lines changed: 3194 additions & 517 deletions

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [22.x]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: "yarn"
26+
cache-dependency-path: "src/yarn.lock"
27+
28+
- name: Install just
29+
run: |
30+
wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
31+
echo "deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
32+
sudo apt update
33+
sudo apt install -y just
34+
35+
- name: Install dependencies
36+
run: just deps
37+
38+
- name: Run tests with coverage
39+
run: just test coverage
40+
41+
- name: Upload coverage reports
42+
uses: codecov/codecov-action@v3
43+
with:
44+
directory: ./src/coverage/
45+
fail_ci_if_error: false

0 commit comments

Comments
 (0)