Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 965eb91

Browse files
committed
ci: split pr workflow into seperated jobs
1 parent 495c530 commit 965eb91

1 file changed

Lines changed: 37 additions & 9 deletions

File tree

.github/workflows/build-and-test-on-pr.yaml

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- release/*
88

99
jobs:
10-
build_and_test:
10+
build:
1111
permissions:
1212
contents: read
1313
runs-on: ubuntu-latest
@@ -21,27 +21,55 @@ jobs:
2121
node-version: '24'
2222
cache: 'pnpm'
2323

24-
- name: Get api docs artifacts
25-
env:
26-
GH_TOKEN: ${{ secrets.GREEN_ECOLUTION_PAT }}
27-
run: |
28-
gh run download -R green-ecolution/backend -n api-docs.json
29-
mv api-docs.json ./packages/backend-client/api-docs.json
30-
3124
- name: Install Dependencies
3225
run: |
3326
pnpm install --frozen-lockfile
34-
pnpm run ci
3527
3628
- name: Build
3729
run: |
3830
pnpm build
3931
32+
lint:
33+
permissions:
34+
contents: read
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: pnpm/action-setup@v4
39+
40+
- name: Set up Node.js
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: '24'
44+
cache: 'pnpm'
45+
46+
- name: Install Dependencies
47+
run: |
48+
pnpm install --frozen-lockfile
49+
4050
- name: Linter
4151
continue-on-error: false
4252
run: |
4353
pnpm lint
4454
55+
test:
56+
permissions:
57+
contents: read
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: pnpm/action-setup@v4
62+
63+
- name: Set up Node.js
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: '24'
67+
cache: 'pnpm'
68+
69+
- name: Install Dependencies
70+
run: |
71+
pnpm install --frozen-lockfile
72+
4573
- name: Test
4674
run: |
4775
pnpm test

0 commit comments

Comments
 (0)