aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pre-commit.yml16
-rw-r--r--.github/workflows/tests.yml8
2 files changed, 14 insertions, 10 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
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index a68b896..ef7e6c1 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -10,6 +10,10 @@ jobs:
run-tests:
runs-on: ubuntu-latest
steps:
+ - name: Pull CI Docker image
+ run: docker pull ghcr.io/jansucan/diff-dd-ci:latest
+
- uses: actions/checkout@v3
- - shell: bash
- run: make test
+
+ - name: Run tests
+ run: sh ./devel_tools/ci_container/run.sh make test