Skip to content

Protect submodule in workflow #18

Protect submodule in workflow

Protect submodule in workflow #18

Workflow file for this run

name: Tests and builds on PR

Check failure on line 1 in .github/workflows/on_pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/on_pr.yml

Invalid workflow file

(Line: 28, Col: 12): Job 'packaging_test' depends on unknown job 'ensure_submodule_sanity'., (Line: 39, Col: 12): Job 'coverage_test' depends on unknown job 'ensure_submodule_sanity'.
on:
pull_request:
branches:
- main
- v*.*-*
types: [opened, reopened, ready_for_review, converted_to_draft]
paths-ignore:
- '**.md'
- 'LICENSE'
- '.editorconfig'
- 'scripts/**'
- '.github//**'
- '!.github/workflows/on_push.yml'
- '!.github/workflows/coverage.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
submodule_sanity_guard:
name: Make sure submodule is in a sane state
uses: .github/workflows/submodule_sanity.yml
packaging_test:
name: Build a minimal set of packages and run all tests on them
needs: ensure_submodule_sanity
# Skip packaging tests for draft PRs
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
uses: ./.github/workflows/packaging.yml
with:
minimal: true
testsuite: all
duckdb-sha: ${{ github.base_ref }}
coverage_test:
name: Run coverage tests
needs: ensure_submodule_sanity
# Only run coverage test for draft PRs
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == true }}
uses: ./.github/workflows/coverage.yml
with:
duckdb_git_ref: ${{ github.base_ref }}
testsuite: all