Skip to content

Commit

Permalink
Restore workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Aug 13, 2024
1 parent 9e9c0ea commit c7792a0
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,51 +9,51 @@ concurrency:
cancel-in-progress: true

jobs:
# builds:
# name: Builds
# runs-on: ubuntu-22.04
# outputs:
# triggered: ${{ steps.build.outputs.triggered }}
# permissions:
# packages: write
# strategy:
# matrix:
# package: [database, common, backend, frontend, oracle-api, sync]
# steps:
# - uses: bcgov-nr/[email protected]
# id: build
# with:
# package: ${{ matrix.package }}
# tag: ${{ github.event.number }}
# tag_fallback: latest
# triggers: ('${{ matrix.package }}/')
builds:
name: Builds
runs-on: ubuntu-22.04
outputs:
triggered: ${{ steps.build.outputs.triggered }}
permissions:
packages: write
strategy:
matrix:
package: [database, common, backend, frontend, oracle-api, sync]
steps:
- uses: bcgov-nr/[email protected]
id: build
with:
package: ${{ matrix.package }}
tag: ${{ github.event.number }}
tag_fallback: latest
triggers: ('${{ matrix.package }}/')

deploys:
name: Deploys
# needs: [builds]
needs: [builds]
secrets: inherit
uses: ./.github/workflows/.deploy.yml

# tests:
# name: Tests
# if: needs.deploys.outputs.run_tests == 'true'
# needs: [deploys]
# secrets: inherit
# uses: ./.github/workflows/.tests.yml
tests:
name: Tests
if: needs.deploys.outputs.run_tests == 'true'
needs: [deploys]
secrets: inherit
uses: ./.github/workflows/.tests.yml

# results:
# name: PR Results
# if: always()
# # Include all needs that could have failures!
# needs: [builds, deploys, tests]
# runs-on: ubuntu-22.04
# steps:
# - run: |
# # View results
# echo "needs.*.result: ${{ toJson(needs.*.result) }}"
results:
name: PR Results
if: always()
# Include all needs that could have failures!
needs: [builds, deploys, tests]
runs-on: ubuntu-22.04
steps:
- run: |
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
# - if: contains(needs.*.result, 'failure')
# run: |
# # Job failure found
# echo "At least one job has failed"
# exit 1
- if: contains(needs.*.result, 'failure')
run: |
# Job failure found
echo "At least one job has failed"
exit 1

0 comments on commit c7792a0

Please sign in to comment.