Skip to content
Merged
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
20 changes: 17 additions & 3 deletions .github/workflows/api-smoke-deployed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
permissions:
contents: read

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

jobs:
smoke:
name: Run deployed API smoke suite
Expand All @@ -21,7 +24,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Resolve target URL
id: target
Expand All @@ -41,15 +44,26 @@ jobs:
fi

if [[ -z "$target" ]]; then
echo "No target URL configured."
echo "Provide workflow input 'api_url' or set repo variable/secret SMOKE_API_URL."
if [[ "${{ github.event_name }}" == "schedule" ]]; then
echo "::notice::No target URL configured. Skipping scheduled smoke run."
echo "skip=true" >> "$GITHUB_OUTPUT"
exit 0
fi
echo "::error::No target URL configured."
echo "::error::Provide workflow input 'api_url' or set repo variable/secret SMOKE_API_URL."
exit 1
fi

echo "Using API URL: $target"
echo "url=$target" >> "$GITHUB_OUTPUT"
echo "skip=false" >> "$GITHUB_OUTPUT"

- name: Skip notice
if: steps.target.outputs.skip == 'true'
run: echo "Scheduled smoke run skipped due to missing SMOKE_API_URL."

- name: Run Hurl smoke suite
if: steps.target.outputs.skip != 'true'
run: |
docker run --rm \
-v "${{ github.workspace }}:/work" \
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
permissions:
contents: read

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

jobs:
backend:
name: Backend Build & Test
Expand All @@ -19,12 +22,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: backend/package-lock.json

Expand All @@ -49,12 +52,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ on:
permissions:
contents: read

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

jobs:
trivy-filesystem:
name: Trivy Filesystem Scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Run Trivy filesystem scan
run: |
Expand All @@ -35,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Build backend image
run: docker build -t trust-center-backend:ci -f backend/Dockerfile backend
Expand Down
Loading