Skip to content

Commit

Permalink
added test runner flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkat committed Jul 26, 2024
1 parent 2f64036 commit 8666a25
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test_runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@


name: Test Runner

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

env:
TEST_DATA_UAT_QINQ_PORT: ${{ secrets.TEST_DATA_UAT_QINQ_PORT }}
TEST_DATA_UAT_FCR_USER: ${{secrets.TEST_DATA_UAT_FCR_USER }}

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
env:
TEST_HOST_URL: https://uatapi.equinix.com
CLIENT_ID: ${{ secrets.TEST_USER_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.TEST_USER_CLIENT_SECRET }}
TEST_USER_NAME: ${{ secrets.TEST_USER_NAME }}
TEST_USER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
shell: bash
working-directory: ./equinix-openapi-fabric
run: |-
mvn clean package -DenvUrl=${{ env.TEST_HOST_URL }} -DuserName=${{ env.TEST_USER_NAME }} \
-DuserPassword=${{ env.TEST_USER_PASSWORD }} -DclientId=${{ env.CLIENT_ID }} -DclientSecret=${{ env.CLIENT_SECRET }}

0 comments on commit 8666a25

Please sign in to comment.