Update release workflow #7
Workflow file for this run
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: "Pull request checks" | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, labeled] | |
# only run this once per PR at a time | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
code-quality: | |
uses: ./.github/workflows/code-quality.yml | |
with: | |
branch: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
unit-tests: | |
uses: ./.github/workflows/unit-tests.yml | |
with: | |
package: ${{ matrix.package }} | |
branch: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
strategy: | |
matrix: | |
package: ["dbt-athena", "dbt-athena-community"] | |
integration-tests: | |
if: contains(github.event.pull_request.labels.*.name, 'ci:integration-tests') | |
uses: ./.github/workflows/integration-tests.yml | |
with: | |
package: ${{ matrix.package }} | |
branch: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
strategy: | |
matrix: | |
package: ["dbt-athena", "dbt-athena-community"] | |
# This job does nothing and is only used for branch protection | |
pull-request-checks: | |
if: always() | |
needs: | |
- code-quality | |
- unit-tests | |
- integration-tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} | |
allowed-skips: integration-tests |