Skip to content

Commit 554abb5

Browse files
committed
fix(auth): close second-review operational gaps
1 parent 1194589 commit 554abb5

28 files changed

Lines changed: 1230 additions & 238 deletions

‎.github/workflows/ci.yml‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
verify:
13+
runs-on: ubuntu-latest
14+
services:
15+
postgres:
16+
image: postgres:17
17+
env:
18+
POSTGRES_USER: postgres
19+
POSTGRES_PASSWORD: postgres
20+
POSTGRES_DB: piquel_test
21+
ports:
22+
- 5432:5432
23+
options: >-
24+
--health-cmd "pg_isready -U postgres -d piquel_test"
25+
--health-interval 5s
26+
--health-timeout 5s
27+
--health-retries 12
28+
env:
29+
TEST_DATABASE_URL: postgres://postgres:postgres@127.0.0.1:5432/piquel_test
30+
steps:
31+
- uses: actions/checkout@v6
32+
- uses: dtolnay/rust-toolchain@stable
33+
with:
34+
toolchain: '1.97'
35+
components: rustfmt, clippy
36+
- uses: pnpm/action-setup@v6
37+
with:
38+
version: 11.9.0
39+
- uses: actions/setup-node@v6
40+
with:
41+
node-version: 24
42+
cache: pnpm
43+
- run: pnpm install --frozen-lockfile
44+
- run: pnpm --filter @piquel/auth-web exec playwright install --with-deps chromium
45+
- run: cargo fmt --all --check
46+
- run: cargo clippy --workspace --all-targets --all-features -- -D warnings
47+
- run: cargo test --workspace
48+
- run: cargo test -p piquel-repository --test identity -- --ignored --test-threads=1
49+
- run: cargo test -p auth-service --test http_flow -- --ignored --test-threads=1
50+
- run: pnpm check:web
51+
- run: pnpm test:web
52+
- run: pnpm test:browser
53+
- uses: EmbarkStudios/cargo-deny-action@v2
54+
with:
55+
command: check advisories
56+
- run: pnpm audit --audit-level=high
57+
- name: Validate Traefik auth topology
58+
run: |
59+
docker run -d --name auth-traefik-config \
60+
-v "$PWD/infra/traefik:/etc/traefik:ro" \
61+
traefik:v3.6 --configFile=/etc/traefik/auth-static.yml
62+
trap 'docker logs auth-traefik-config; docker rm -f auth-traefik-config' EXIT
63+
sleep 3
64+
test "$(docker inspect -f '{{.State.Running}}' auth-traefik-config)" = true
65+
test "$(docker inspect -f '{{.State.ExitCode}}' auth-traefik-config)" = 0

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ target
55
node_modules
66
.svelte-kit
77
apps/auth-web/build
8+
apps/auth-web/playwright-report
9+
apps/auth-web/test-results
810

911
# These are backup files generated by rustfmt
1012
**/*.rs.bk

0 commit comments

Comments
 (0)