diff options
| author | Jan Sucan <jan@jansucan.com> | 2024-04-27 15:55:17 +0200 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2024-04-27 16:16:36 +0200 |
| commit | 820d4ddf1435805bbcb8a524e7b2408dca506ce3 (patch) | |
| tree | f711f3d20d6dac8a013c7af7732785f748a32199 /.github/workflows/pre-commit.yml | |
| parent | 7f276fb89d659ad86bf2b862f4de4ed3c362d3d6 (diff) | |
github: User the CI docker image in workflows
Diffstat (limited to '.github/workflows/pre-commit.yml')
| -rw-r--r-- | .github/workflows/pre-commit.yml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e30b0f5..b01aaba 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -10,15 +10,15 @@ jobs: run-pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Pull CI Docker image + run: docker pull ghcr.io/jansucan/diff-dd-ci:latest - - name: Install pre-commit - run: pip install pre-commit + - uses: actions/checkout@v3 - - name: Install cppcheck - run: | - sudo apt-get update - sudo apt-get install -y cppcheck + - name: Build diff-dd + # This is needed to create generated include files so cppcheck can find + # them + run: sh ./devel_tools/ci_container/run.sh make - name: Run pre-commit - run: pre-commit run --all-files + run: sh ./devel_tools/ci_container/run.sh pre-commit run --all-files |
