File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ./...
You can’t perform that action at this time.
0 commit comments