File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Pull Request Checks
33on :
44 pull_request :
55 branches :
6- - dev
6+ - main
77
88concurrency :
99 group : ${{ github.workflow }}-${{ github.ref }}
@@ -12,14 +12,47 @@ concurrency:
1212jobs :
1313 lint-and-build :
1414 runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ pull-requests : write
18+ checks : write
1519 steps :
1620 - uses : actions/checkout@v4
21+
1722 - uses : actions/setup-node@v4
1823 with :
1924 node-version : " 22"
2025 cache : " yarn"
21- - run : corepack enable
22- - run : yarn config set enableImmutableInstalls false
23- - run : yarn install
24- - run : yarn lint
25- - run : yarn test
26+
27+ - name : Enable Corepack
28+ run : corepack enable
29+
30+ - name : Install dependencies
31+ run : |
32+ yarn config set enableImmutableInstalls false
33+ yarn install
34+
35+ - name : Run typecheck
36+ run : yarn typecheck
37+
38+ - name : Lint server (ESLint)
39+ run : |
40+ cd apps/server
41+ yarn lint --format json --output-file eslint-report.json || true
42+ yarn lint
43+ continue-on-error : true
44+
45+ - name : Lint client (Biome)
46+ run : |
47+ cd apps/client
48+ yarn lint --reporter=github
49+ continue-on-error : true
50+
51+ - name : Lint paradigm (Biome)
52+ run : |
53+ cd packages/paradigm
54+ yarn lint --reporter=github
55+ continue-on-error : true
56+
57+ - name : Run tests
58+ run : yarn test
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- - dev
87 tags :
98 - " v*"
109 workflow_dispatch :
5049 IMAGE_NAME_LOWER=$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
5150
5251 if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
53- echo "tags=${{ env.REGISTRY }}/${IMAGE_NAME_LOWER}:latest" >> $GITHUB_OUTPUT
54- elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
5552 echo "tags=${{ env.REGISTRY }}/${IMAGE_NAME_LOWER}:dev" >> $GITHUB_OUTPUT
5653 elif [[ "${{ github.ref }}" == refs/tags/v* ]]; then
5754 VERSION=${GITHUB_REF#refs/tags/v}
You can’t perform that action at this time.
0 commit comments