changes for review #6
Workflow file for this run
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: Test report-dso-event action | |
on: | |
push: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# TODO add a step to configure AWS creds if we decide to test reporting an event | |
- name: Test report-dso-event action | |
id: test-action | |
uses: ./.github/actions/report-dso-event | |
continue-on-error: true # TODO for now, we're expecting the program to exit 2 when usage is called | |
with: | |
args: -h # TODO we might decide to report a valid test event to test infrastructure when it is set up | |
version: "v0.1.0-dev" | |
- name: Assert against outputs | |
if: ${{ (steps.test-action.outputs.exit-code != 2) || (!contains(steps.test-action.outputs.output, 'report-event')) }} | |
run: | | |
echo "Exit code and output did not match expected" | |
echo "Exit code: ${{ steps.test-action.outputs.exit-code }}" | |
echo "Stdout: ${{ steps.test-action.outputs.output }}" | |
echo "Stderr: ${{ steps.test-action.outputs.error-output }}" | |
exit 1 |