CI E2E and API tests #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI E2E tests | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
run_id: | ||
description: 'Run_id from oasis-borrow run that is triggering this workflow.' | ||
type: string | ||
required: true | ||
# testing 'tests failure' scenario | ||
result: | ||
description: 'Test result parameter introduced for testing failure scenario' | ||
type: string | ||
required: true | ||
jobs: | ||
ci-e2e-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: CI - Regression E2E tests for RUN_ID ${{ inputs.run_id }} | ||
run: echo "Event received - RUN_ID is ${{ inputs.run_id }}" | ||
- name: Check coverage tolerance | ||
if: ${{ inputs.result == fail }} | ||
Check failure on line 24 in .github/workflows/ci_e2e_tests.yml GitHub Actions / CI E2E testsInvalid workflow file
|
||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.setFailed('E2E tests failed') |