Skip to content

Commit 1e5ec10

Browse files
ci: add pull request verification workflow
1 parent 6a1d85e commit 1e5ec10

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- codex/**
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: pr-check-${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
cache: npm
29+
cache-dependency-path: frontend/package-lock.json
30+
31+
- name: Set up Go
32+
uses: actions/setup-go@v5
33+
with:
34+
go-version-file: go.mod
35+
36+
- name: Build frontend
37+
working-directory: frontend
38+
env:
39+
VITE_APP_VERSION: ${{ github.head_ref || github.ref_name }}
40+
run: |
41+
npm ci
42+
npm run build
43+
44+
- name: Run Go tests
45+
run: go test ./...

0 commit comments

Comments
 (0)