Skip to content

Commit 0058442

Browse files
ci: add test workflow, start docker build on test pass
1 parent 0aeb5e0 commit 0058442

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Docker Image CI
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- main
4+
workflow_run:
5+
workflows: [Test]
6+
branches: [main]
7+
types:
8+
- completed
79

810
jobs:
911
build:

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
name: Typecheck and Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
run_install: false
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: "package.json"
21+
cache: pnpm
22+
- name: Install Dependencies
23+
run: pnpm install --frozen-lockfile
24+
- name: Typecheck
25+
run: pnpm run typecheck
26+
- name: Run Biome
27+
run: pnpm exec biome ci .
28+
- name: Build
29+
run: pnpm run build

0 commit comments

Comments
 (0)