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: Juno (build & deploy all apps) | |
on: | |
push: | |
branches: | |
- gh-matrix | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# On release creation | |
# release: | |
# types: [created] | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "tests&deployments" | |
cancel-in-progress: true | |
# Default to bash | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
collect_info: | |
runs-on: [ubuntu-latest] | |
outputs: | |
apps: ${{ steps.collect-apps.outputs.apps }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Collect apps | |
id: collect-apps | |
run: | | |
echo "apps=$(ls -d ./apps/*/ | jq --raw-input --slurp --compact-output 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT} | |
changes: | |
runs-on: [ubuntu-latest] | |
outputs: | |
apps: ${{ steps.filter.outputs.apps }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
list-files: json | |
filters: | | |
apps: | |
- 'apps/**' | |
- name: Show outputs | |
run: echo ${{ steps.filter.outputs.apps}} | |
# apps: | |
# needs: changes | |
# if: ${{ needs.changes.outputs.apps == 'true' }} | |
# runs-on: [ubuntu-latest] | |
# steps: | |
# - run: echo ${{ needs.changes.outputs.apps }} | |
# run_test: | |
# needs: collect_info | |
# runs-on: [ubuntu-latest] | |
# strategy: | |
# matrix: | |
# apps: ${{fromJson(needs.collect_info.outputs.apps)}} | |
# steps: | |
# - run: echo ${{ matrix.apps }} |