Skip to content

Commit

Permalink
Try to test _extension_code_quality in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Dec 10, 2024
1 parent ac95c03 commit b93dee1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/TestCITools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@ jobs:
name: Code quality check
uses: ./.github/workflows/_extension_code_quality.yml
with:
override_ci_tools_repository: "Dtenwolde/extension-ci-tools"
ci_tools_version: main
override_repository: duckdb/extension-template
override_ref: main
duckdb_version: v1.1.3
override_ci_tools_repository: ${{ github.repository }}
ci_tools_version: ${{ github.sha }}
29 changes: 27 additions & 2 deletions .github/workflows/_extension_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:
explicit_checks:
required: false
type: string
# The version of the https://github.com/duckdb/extension-ci-tools submodule of the extension. In most cases will be identical to `duckdb_version`.
# Passing this explicitly is required because of https://github.com/actions/toolkit/issues/1264
duckdb_version:
required: true
type: string
ci_tools_version:
required: true
type: string
Expand All @@ -16,6 +17,15 @@ on:
required: false
type: string
default: "duckdb/extension-ci-tools"
override_repository:
required: false
type: string
default: ""
# The git ref used for the override_repository
override_ref:
required: false
type: string
default: ""


jobs:
Expand All @@ -29,8 +39,18 @@ jobs:
GEN: ninja

steps:
- uses: actions/checkout@v4
name: Checkout override repository
if: ${{inputs.override_repository != ''}}
with:
repository: ${{ inputs.override_repository }}
ref: ${{ inputs.override_ref }}
fetch-depth: 0
submodules: 'true'

- uses: actions/checkout@v4
name: Checkout current repository
if: ${{inputs.override_repository == ''}}
with:
fetch-depth: 0
submodules: 'true'
Expand All @@ -42,6 +62,11 @@ jobs:
ref: ${{ inputs.ci_tools_version }}
repository: ${{ inputs.override_ci_tools_repository }}

- name: Checkout DuckDB to version
if: ${{inputs.duckdb_version != ''}}
run: |
DUCKDB_GIT_VERSION=${{ inputs.duckdb_version }} make set_duckdb_version
- name: Install
shell: bash
run: sudo apt-get update -y -qq && sudo apt-get install -y -qq ninja-build clang-format-11 && sudo pip3 install cmake-format black cxxheaderparser pcpp
Expand Down

0 comments on commit b93dee1

Please sign in to comment.