Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ jobs:
- name: Run tests with coverage
working-directory: backend
env:
DATABASE_URL: sqlite::memory:
DATABASE_URL: "sqlite::memory:"
REDIS_URL: redis://127.0.0.1:6379
run: |
cargo llvm-cov \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# ONLY for `--lib` (production code). Tests are allowed to keep `.unwrap()`
# / `.expect()` / `panic!` because they are the idiomatic way to express
# preconditions and assertions in unit tests.
- name: Backend Clippy (lib: deny panic-lints; tests: warn)
- name: "Backend Clippy (lib: deny panic-lints; tests: warn)"
working-directory: ./backend
run: |
cargo clippy --lib -- \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Run tests with coverage
working-directory: backend
env:
DATABASE_URL: sqlite::memory:
DATABASE_URL: "sqlite::memory:"
REDIS_URL: redis://127.0.0.1:6379
run: |
cargo llvm-cov \
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/vault-deploy-approle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ env:
jobs:
test-with-approle:
runs-on: ubuntu-latest
env:
VAULT_AUTH_CONFIGURED: ${{ secrets.VAULT_ADDR != '' && secrets.VAULT_ROLE_ID != '' && secrets.VAULT_SECRET_ID != '' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -23,12 +25,12 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Set fallback JWT secret when Vault credentials are unavailable
if: ${{ secrets.VAULT_ADDR == '' || secrets.VAULT_ROLE_ID == '' || secrets.VAULT_SECRET_ID == '' }}
if: ${{ env.VAULT_AUTH_CONFIGURED != 'true' }}
run: |
echo "JWT_SECRET=fallback-test-secret-value-at-least-32-characters" >> $GITHUB_ENV

- name: Authenticate to Vault with AppRole
if: ${{ secrets.VAULT_ADDR != '' && secrets.VAULT_ROLE_ID != '' && secrets.VAULT_SECRET_ID != '' }}
if: ${{ env.VAULT_AUTH_CONFIGURED == 'true' }}
id: vault-auth
run: |
TOKEN=$(curl -s -X POST \
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/vault-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ env:
jobs:
test:
runs-on: ubuntu-latest
env:
VAULT_AUTH_CONFIGURED: ${{ secrets.VAULT_ADDR != '' }}
permissions:
contents: read
id-token: write # Required for GitHub OIDC token
Expand All @@ -27,13 +29,13 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Set fallback test secrets when Vault is unavailable
if: ${{ secrets.VAULT_ADDR == '' }}
if: ${{ env.VAULT_AUTH_CONFIGURED != 'true' }}
run: |
echo "JWT_SECRET=fallback-test-secret-value-at-least-32-characters" >> $GITHUB_ENV
echo "DATABASE_URL=sqlite::memory:" >> $GITHUB_ENV

- name: Get Vault Token via GitHub OIDC
if: ${{ secrets.VAULT_ADDR != '' }}
if: ${{ env.VAULT_AUTH_CONFIGURED == 'true' }}
id: vault-auth
run: |
TOKEN=$(curl -s -X POST \
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ benchmarks/baseline.json
/public/worker-*.js.map
/public/fallback-*.js
/public/fallback-*.js.map

# Rust backend build
backend/target/

Loading