Skip to content

Commit 1a4ec25

Browse files
run test
1 parent 690d299 commit 1a4ec25

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version-file: .nvmrc
21+
cache: npm
22+
23+
- name: Install Dependencies
24+
run: npm ci
25+
26+
- name: Build
27+
run: npm run build
28+
29+
- name: Lint
30+
run: npm run lint
31+
32+
- name: Test
33+
env:
34+
TB_KEY: ${{ secrets.TB_KEY }}
35+
TB_SECRET: ${{ secrets.TB_SECRET }}
36+
run: |
37+
npm run link
38+
npm run test

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npx pretty-quick --staged
2+
npm run lint

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20

0 commit comments

Comments
 (0)