File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - main
77 tags :
88 - ' v*'
9- pull_request :
10- branches :
11- - main
129 workflow_dispatch :
1310
1411env :
3027 uses : docker/setup-buildx-action@v3
3128
3229 - name : Log in to the Container registry
33- if : github.event_name != 'pull_request'
3430 uses : docker/login-action@v3
3531 with :
3632 registry : ${{ env.REGISTRY }}
5450 with :
5551 context : .
5652 platforms : linux/amd64,linux/arm64
57- push : ${{ github.event_name != 'pull_request' }}
53+ push : true
5854 tags : ${{ steps.meta.outputs.tags }}
5955 labels : ${{ steps.meta.outputs.labels }}
6056 cache-from : type=gha
Original file line number Diff line number Diff line change 1+ name : PR Checks
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ types : [opened, synchronize, reopened]
8+
9+ jobs :
10+ lint-and-format :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ cache : ' npm'
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ - name : Run ESLint
27+ run : npm run lint
28+
29+ - name : Check formatting with Prettier
30+ run : npm run format:check
31+
32+ - name : Type check
33+ run : npm run check
Original file line number Diff line number Diff line change 1414 "lint" : " eslint ." ,
1515 "lint:fix" : " eslint . --fix" ,
1616 "format" : " prettier --write ." ,
17+ "format:check" : " prettier --check ." ,
1718 "test:server" : " node test-server.cjs" ,
1819 "test:e2e" : " playwright test" ,
1920 "test:e2e:ui" : " playwright test --ui" ,
You can’t perform that action at this time.
0 commit comments