Skip to content

Implement enterprise hardening and security fixes #4

Implement enterprise hardening and security fixes

Implement enterprise hardening and security fixes #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
go-test:
name: Go Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: true
- name: Run Go tests
run: go test -v -race -count=1 ./...
e2e:
name: E2E Tests (Playwright)
runs-on: ubuntu-latest
needs: go-test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Build and start gateway stack
run: |
docker compose up --build -d
# Wait for services to be healthy
echo "Waiting for services..."
sleep 10
docker compose ps
- name: Run E2E tests
run: npm run test:e2e
env:
GATEWAY_URL: http://localhost:8080
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 14
- name: Stop gateway stack
if: always()
run: docker compose down -v