Skip to content

[DE-998] DE-1004 Refactor tests to run on staging and prod #430

[DE-998] DE-1004 Refactor tests to run on staging and prod

[DE-998] DE-1004 Refactor tests to run on staging and prod #430

Workflow file for this run

name: Build & run E2E tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
architecture: x64
- name: Run tests
id: build
shell: bash
env:
API_KEY: ${{ secrets.API_KEY }}
DOMAIN: ${{ secrets.DOMAIN }}
SUBDOMAIN: ${{ secrets.SUBDOMAIN }}
SITE_ID: ${{ secrets.SITE_ID }}
run: |
mvn install
cd tests
mvn --batch-mode --update-snapshots verify --fail-at-end
- name: Publish Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1