Skip to content

Commit 957f7f7

Browse files
committed
ci
1 parent 373cf27 commit 957f7f7

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/test.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: [main]
5+
paths-ignore:
6+
- '**.md'
7+
pull_request:
8+
branches: [main]
9+
paths-ignore:
10+
- '**.md'
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: '18.x'
21+
22+
- uses: actions/cache@v4
23+
with:
24+
path: |
25+
~/.npm
26+
~/.config/yarn/global
27+
**/node_modules
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
32+
- name: Install
33+
run: npm install
34+
35+
- name: Typescript
36+
run: npm run typescript
37+
38+
- name: ESLint
39+
run: npm run lint
40+
41+
- name: Run Tests
42+
run: npm run ci:test -- --passWithNoTests
43+

0 commit comments

Comments
 (0)