Skip to content

Commit 4cd9670

Browse files
committed
ci: split up jobs
1 parent 640e8a2 commit 4cd9670

File tree

1 file changed

+34
-11
lines changed

1 file changed

+34
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ env:
2121

2222
AUTH_SECRET: "test-secret-for-ci-e2e-tests-only"
2323

24-
# remove
25-
NEXT_PUBLIC_DISABLE_POPUP: "true"
26-
2724
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
2825
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
2926

@@ -79,6 +76,20 @@ jobs:
7976
working-directory: apps/uno
8077
run: golangci-lint run
8178

79+
check-docs:
80+
name: 📚 Check Backend Docs
81+
runs-on: ubuntu-latest
82+
83+
steps:
84+
- name: 🔍 Checkout
85+
uses: actions/checkout@v5
86+
87+
- name: 🐹 Setup Go
88+
uses: actions/setup-go@v6
89+
with:
90+
go-version: 1.25.3
91+
cache-dependency-path: apps/uno/go.sum
92+
8293
- name: 📦 Install swag
8394
run: go install github.com/swaggo/swag/cmd/swag@latest
8495

@@ -90,8 +101,8 @@ jobs:
90101
exit 1
91102
fi
92103
93-
test-unit:
94-
name: 🧪 Unit Tests
104+
test-unit-frontend:
105+
name: 🧪 Unit Tests (Frontend)
95106
runs-on: ubuntu-latest
96107

97108
steps:
@@ -111,14 +122,26 @@ jobs:
111122
- name: 📦 Install dependencies
112123
run: pnpm install --frozen-lockfile
113124

114-
- name: 🔃 Sync docs
115-
run: pnpm --filter=docs sync
125+
- name: 🧪 Run frontend unit tests
126+
run: pnpm --filter=web test:unit
116127

117-
- name: 🆎 Typegen
118-
run: pnpm --filter=web typegen
128+
test-unit-backend:
129+
name: 🧪 Unit Tests (Backend)
130+
runs-on: ubuntu-latest
131+
132+
steps:
133+
- name: 🔍 Checkout
134+
uses: actions/checkout@v5
119135

120-
- name: 🧪 Run unit tests
121-
run: pnpm test:unit
136+
- name: 🐹 Setup Go
137+
uses: actions/setup-go@v6
138+
with:
139+
go-version: 1.25.3
140+
cache-dependency-path: apps/uno/go.sum
141+
142+
- name: 🧪 Run backend unit tests
143+
working-directory: apps/uno
144+
run: go test ./... -v
122145

123146
test-e2e:
124147
name: 🎭 E2E Tests

0 commit comments

Comments
 (0)