Skip to content

Commit 8cf6076

Browse files
committed
ci: add tests to CI
1 parent fc16f51 commit 8cf6076

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: ["main", "master"]
6+
pull_request:
7+
8+
jobs:
9+
test-clarity:
10+
name: Clarity contract tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: "22"
18+
cache: "npm"
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Run clarity tests
24+
run: npm run test:clarity
25+
26+
test-node:
27+
name: Node tests
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: "22"
35+
cache: "npm"
36+
37+
- name: Install dependencies
38+
run: npm ci
39+
40+
- name: Run node tests
41+
run: npm run test:node

0 commit comments

Comments
 (0)