Skip to content

Commit bc6efe7

Browse files
committed
chore: run lint, build & tests in pipeline
1 parent a129255 commit bc6efe7

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,40 @@ jobs:
2828
run: pnpm install
2929
- name: Run linting
3030
run: pnpm run lint
31+
build:
32+
needs: [lint]
33+
name: 'build'
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Install pnpm
38+
uses: pnpm/action-setup@v4
39+
with:
40+
version: 10.18.1
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 22
44+
cache: 'pnpm'
45+
- name: Install dependencies
46+
run: pnpm install
47+
- name: Run build
48+
run: pnpm run build
49+
test:
50+
needs: [lint, build]
51+
name: 'test'
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v4
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
with:
58+
version: 10.18.1
59+
- uses: actions/setup-node@v4
60+
with:
61+
node-version: 22
62+
cache: 'pnpm'
63+
- name: Install dependencies
64+
run: pnpm install
65+
- name: Run tests
66+
run: pnpm run test
3167

0 commit comments

Comments
 (0)