From 0501ce589be5fea12fbc4e0b3585fea34ecd8e1a Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 8 Jan 2023 13:47:54 +0700 Subject: [PATCH] make use action with specified compiler to test invalid compiler name --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33af546..9a79062 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,6 +62,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v3.3.0 + - name: Use this action with specified invalid compiler + id: failed_step + continue-on-error: true + uses: ./ + with: + source-dir: test + c-compiler: ${{ matrix.lang == 'C' && 'invalid' || '' }} + cxx-compiler: ${{ matrix.lang == 'CXX' && 'invalid' || '' }} + + - name: Check if previous step is failing + run: ${{ steps.failed_step.outcome == 'failure' && 'true' || 'false' }} + - name: Use this action with specified compiler uses: ./ with: