Skip to content

update the structure for the monorepo #65

update the structure for the monorepo

update the structure for the monorepo #65

name: "Pull request checks"
on:
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: dbt-labs/dbt-adapters/.github/workflows/_code-quality.yml@monorepo-prep
strategy:
matrix:
package: ["dbt-athena", "dbt-athena-community"]
os: [ubuntu-22.04]
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 }}
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
changelog:
uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main
with:
changelog_comment: 'Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-adapters/blob/main/CONTRIBUTING.md#adding-changelog-entry).'
skip_label: 'Skip Changelog'
secrets: inherit
verify-builds:
uses: dbt-labs/dbt-adapters/.github/workflows/_verify-build.yml

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

View workflow run for this annotation

GitHub Actions / .github/workflows/pull-request-checks.yml

Invalid workflow file

invalid value workflow reference: no version specified
strategy:
matrix:
package: ["dbt-athena", "dbt-athena-community"]
os: [ubuntu-22.04]
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 }}
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
unit-tests:
uses: dbt-labs/dbt-adapters/.github/workflows/_unit-tests.yml@monorepo-prep
strategy:
matrix:
package: ["dbt-athena", "dbt-athena-community"]
os: [ubuntu-22.04]
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 }}
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
integration-tests:
uses: ./.github/workflows/_integration-tests.yml
strategy:
matrix:
package: ["dbt-athena", "dbt-athena-community"]
os: [ubuntu-22.04]
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 }}
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
secrets: inherit
# This job does nothing and is only used for branch protection
results:
name: "Pull request checks"
if: always()
needs: [code-quality, changelog, verify-builds, unit-tests, integration-tests]
runs-on: ${{ vars.DEFAULT_RUNNER }}
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}