Skip to content

ADAP-1124: Establish shared workflows for the monorepo migration #3

ADAP-1124: Establish shared workflows for the monorepo migration

ADAP-1124: Establish shared workflows for the monorepo migration #3

name: "Pull request checks"
on:
pull_request:
types: [opened, reopened, synchronize]
pull_request_target:
types: [opened, reopened, synchronize]
# 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 }}
verify-builds:
uses: ./.github/workflows/_verify-build.yml

Check failure on line 22 in .github/workflows/pull-request-checks.yml

View workflow run for this annotation

GitHub Actions / Pull request checks

Invalid workflow file

The workflow is not valid. In .github/workflows/pull-request-checks.yml (Line: 22, Col: 15): Error from called workflow dbt-labs/dbt-adapters/.github/workflows/_verify-build.yml@0c0f22720cd7de29cddc3ca7cf806b6ddf748c07 (Line: 43, Col: 26): Unrecognized named-value: 'vars'. Located at position 1 within expression: vars.DEFAULT_RUNNER
strategy:
matrix:
package: ["dbt-adapters", "dbt-tests-adapter"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
with:
package: ${{ matrix.package }}
branch: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
python-version: ${{ matrix.python-version }}
unit-tests:
uses: ./.github/workflows/_unit-tests.yml
strategy:
matrix:
package: ["dbt-adapters"]
with:
package: ${{ matrix.package }}
branch: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
# This job does nothing and is only used for branch protection
results:
name: "Pull request checks" # keep this name, branch protection references it
if: always()
needs: [code-quality, verify-builds, unit-tests]
runs-on: ${{ vars.DEFAULT_RUNNER }}
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}