Skip to content

Commit 73db261

Browse files
committed
ci: add some workflows
1 parent fe3807c commit 73db261

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Static Code Analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '.github/workflows/code-analysis.yml'
9+
- 'src/**'
10+
- 'tests/**'
11+
pull_request:
12+
branches:
13+
- master
14+
paths:
15+
- '.github/workflows/code-analysis.yml'
16+
- 'src/**'
17+
- 'tests/**'
18+
19+
jobs:
20+
run-linter:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: 18
27+
registry-url: https://registry.npmjs.org/
28+
- uses: pnpm/action-setup@v2
29+
with:
30+
run_install: true
31+
- name: Analyze the code
32+
run: pnpm run lint

.github/workflows/perform-test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Performing tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '.github/workflows/perform-test.yml'
9+
- 'src/**'
10+
- 'tests/**'
11+
pull_request:
12+
branches:
13+
- master
14+
paths:
15+
- '.github/workflows/perform-test.yml'
16+
- 'src/**'
17+
- 'tests/**'
18+
19+
jobs:
20+
run-tester:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: 18
27+
registry-url: https://registry.npmjs.org/
28+
- uses: pnpm/action-setup@v2
29+
with:
30+
run_install: true
31+
- name: Perform a test
32+
run: pnpm run test

0 commit comments

Comments
 (0)