Skip to content

Commit

Permalink
lint as extra job
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik <[email protected]>
  • Loading branch information
Dominik-K committed Dec 23, 2023
1 parent a84d5d9 commit 29b8d1b
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:

jobs:
build:
name: Build, Lint and Test
name: Build and Test
runs-on: ${{ inputs.runner || 'ubuntu-22.04' }}
env:
CACHE_PATH: /tmp/cache
Expand Down Expand Up @@ -67,12 +67,7 @@ jobs:
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.repository_ref }}
- name: Run clang-format
uses: everest/everest-ci/github-actions/[email protected]
with:
source-dir: . # FIXME Make sure `.` is the default to remove this line.
extensions: hpp,cpp
exclude: cache

- name: Pull build-kit image
run: |
docker pull --quiet ghcr.io/everest/build-kit-alpine:latest
Expand All @@ -88,7 +83,7 @@ jobs:
--env CMAKE_FLAGS_EXTRA="${CMAKE_FLAGS_EXTRA:?}" \
--name build-container \
build-kit .ci/build-kit/build_install.sh
- name: Archive CMake output & error logs
- name: upload CMake output & error logs
if: always()
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -121,9 +116,22 @@ jobs:
with:
path: ${{ env.CACHE_PATH }}
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
- name: Archive test results
- name: upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: ctest-report
path: /tmp/ctest-report
lint:
name: Lint C++/C files
steps:
- name: Checkout repo ${{ inputs.repository || 'EVerest/everest-core' }}
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.repository_ref }}
- name: Run clang-format
uses: everest/everest-ci/github-actions/[email protected]
with:
source-dir: . # FIXME Make sure `.` is the default to remove this line.
extensions: hpp,cpp

0 comments on commit 29b8d1b

Please sign in to comment.