Skip to content

Add tests

Add tests #29

Workflow file for this run

name: Test Runner
on:
workflow_dispatch:
pull_request:
branches: [ "**" ]
jobs:
build:
runs-on: ubuntu-latest
env:
TEST_HOST_URL: ${{ secrets.TEST_HOST_URL }}
TEST_DATA_UAT_USERS: ${{ secrets.TEST_DATA_UAT_USERS }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Tests
shell: bash
run: |-
cd equinix-openapi-fabric
mvn clean test -DenvUrl=${{ env.TEST_HOST_URL }}
- name: Generate report
if: always()
shell: bash
run: |-
cd equinix-openapi-fabric
mvn surefire-report:report -DskipTests
ls
find .
- name: attach report as attachment
if: always()
uses: actions/upload-artifact@v4
with:
name: test report
path: ./equinix-openapi-fabric/target/reports