Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 27, 2024
1 parent d25ba83 commit 943bc06
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
runs-on: ubuntu-latest
outputs:
all_tests: ${{ steps.get_all_tests.outputs.all_tests }}
count: ${{steps.get_all_tests.outputs.count}}
dummy: '[1, 2, 3]'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -35,14 +37,30 @@ jobs:
echo "We are about to get the output"
GREET=$(./scripts/simple.sh)
ALL_TESTS=$(./scripts/test.sh | base64 -d)
COUNT=(0 1 2 3)
echo "all_tests=$ALL_TESTS" >> $GITHUB_ENV
echo "greet=$GREET" >> $GITHUB_ENV
echo "::set-output name=all_tests::$ALL_TESTS"
echo "::set-output name=count::$COUNT"
- name: Print the captured output
run: |
echo "${{ steps.get_all_tests.outputs.all_tests }}"
echo "${{ env.all_tests }}"
echo "${{ env.greet }}"
more-debugging:
runs-on: ubuntu-latest
needs: generate-tests
strategy:
fail-fast: false # We want to see which example tests succeed and which ones fail, we don't want one example test to cancel the rest
matrix:
tests: ${{ fromJSON(needs.generate-tests.outputs.count) || fromJSON('["dummy"]') }}
dummy-debugging:
runs-on: ubuntu-latest
needs: generate-tests
strategy:
fail-fast: false # We want to see which example tests succeed and which ones fail, we don't want one example test to cancel the rest
matrix:
tests: ${{ fromJSON(needs.generate-tests.outputs.dummy) || fromJSON('["dummy"]') }}
debug-generate-tests:
name: ${{matrix.tests}}
needs: generate-tests
Expand Down

0 comments on commit 943bc06

Please sign in to comment.