Skip to content

Commit 64ab990

Browse files
committed
feat: build and test frontend on PRs
On every PR against dev, main and release we want to run the following checks: * build the frontend w/o errors * run unit tests * run linter
1 parent 0006345 commit 64ab990

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Test Frontend
2+
on:
3+
pull_request:
4+
branches: [ dev, main, release ]
5+
push:
6+
branches: [ dev, main, release ]
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
with:
22+
version: '9.2.0'
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Run tests
28+
run: pnpm test
29+
30+
- name: Build frontend
31+
run: pnpm build
32+
33+
- name: Run lint
34+
run: pnpm lint

0 commit comments

Comments
 (0)