Merge pull request #379 from kgilds/issue-358 #55
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: 'Shinyapps Package Dependency Tests' | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'packages/**' | |
- '.github/workflows/*.yml' | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
list-tests: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.list-tests.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Print Tests | |
run: echo "matrix=$(./test-list.sh | jq -Rsc '. / "\n" - [""]')" | |
- name: List Tests As Output | |
id: list-tests | |
run: echo "matrix=$(./test-list.sh | jq -Rsc '. / "\n" - [""]')" >> $GITHUB_OUTPUT | |
test-package: | |
name: ${{ matrix.stack }} on ${{ matrix.os }} | |
needs: list-tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
stack: ${{ fromJSON(needs.list-tests.outputs.matrix) }} | |
os: [jammy] | |
container: | |
image: rstudio/shinyapps-package-dependencies:${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: ./test ${{ matrix.stack }} |