Skip to content

Commit ee1ba6e

Browse files
willemnealclaude
andcommitted
ci: run fly-app cargo tests in GitHub Actions
Adds a parallel fly-app job to the test workflow with its own postgres:17-alpine service container. Renames the existing Node job to `node` to make the split explicit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 44b69d2 commit ee1ba6e

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
test:
13+
node:
1414
runs-on: ubuntu-24.04
1515
timeout-minutes: 15
1616

@@ -69,3 +69,42 @@ jobs:
6969
run: npm run test:integration
7070
env:
7171
TEST_PG_URL: postgres://test:test@localhost:5433/registry_test
72+
73+
fly-app:
74+
runs-on: ubuntu-24.04
75+
timeout-minutes: 20
76+
defaults:
77+
run:
78+
working-directory: fly-app
79+
80+
services:
81+
postgres:
82+
image: postgres:17-alpine
83+
env:
84+
POSTGRES_USER: test
85+
POSTGRES_PASSWORD: test
86+
POSTGRES_DB: registry_test
87+
ports:
88+
- 5433:5432
89+
options: >-
90+
--health-cmd="pg_isready -U test -d registry_test"
91+
--health-interval=2s
92+
--health-timeout=3s
93+
--health-retries=15
94+
95+
steps:
96+
- uses: actions/checkout@v5
97+
98+
- uses: dtolnay/rust-toolchain@stable
99+
100+
- uses: Swatinem/rust-cache@v2
101+
with:
102+
workspaces: fly-app
103+
104+
- name: Cargo build (tests)
105+
run: cargo build --tests
106+
107+
- name: Cargo test
108+
run: cargo test --no-fail-fast
109+
env:
110+
TEST_DATABASE_URL: postgres://test:test@localhost:5433/registry_test

0 commit comments

Comments
 (0)