Skip to content

adopt spring-cloud-azure-starter-keyvault-secrets #161

adopt spring-cloud-azure-starter-keyvault-secrets

adopt spring-cloud-azure-starter-keyvault-secrets #161

Workflow file for this run

name: Pipeline
on:
push:
branches:
- main
pull_request:
concurrency:
group: any
cancel-in-progress: true
jobs:
test-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 22
cache: "npm"
cache-dependency-path: client/package-lock.json
- name: Install dependencies
working-directory: client
run: npm ci
- name: Run client tests
working-directory: client
run: npm test
test-e2e:
runs-on: ubuntu-latest
needs: test-client
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 22
cache: "npm"
cache-dependency-path: test/package-lock.json
- name: Install dependencies
working-directory: test
run: npm ci
- name: Install Playwright browsers
working-directory: test
run: npx playwright install chromium --with-deps
- name: Setup test environment and start Docker Compose
run: scripts/compose_up.sh
- name: Run Playwright tests
working-directory: test
run: npm test
- name: Upload test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results
path: test/test-results
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: test/playwright-report
- run: docker compose logs
if: always()
publish-server-image:
runs-on: ubuntu-latest
needs: test-e2e
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: 3.13
cache: "pip"
- run: pip install -r requirements.txt
- run: python scripts/publish_images.py "${{ secrets.GITHUB_TOKEN }}" "${{ secrets.ANSIBLE_VAULT_KEY }}"