Skip to content

Add condition to disable redirection tests (#23) #20

Add condition to disable redirection tests (#23)

Add condition to disable redirection tests (#23) #20

Workflow file for this run

name: Test VT Shell
on:
push:
branches:
- main
pull_request:
paths:
- 'lab/vtsh/**'
jobs:
build:
strategy:
matrix:
cmake_build_type:
- Asan
- Release
runs-on: ubuntu-latest
container:
image: silkeh/clang:latest
defaults:
run:
working-directory: ./lab/vtsh
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clang Format
run: |
find . -path ./build -prune -o \
\( -iname '*.c' -o -iname '*.h' -o -iname '*.cpp' -o -iname '*.hpp' \) \
-exec clang-format --style=file --dry-run --verbose {} \;
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
- name: Build
run: cmake --build build
- name: Clang Tidy
if: matrix.cmake_build_type == 'Release'
run: |
find . -path ./build -prune -o \
\( -iname '*.c' -o -iname '*.h' -o -iname '*.cpp' -o -iname '*.hpp' \) -exec \
clang-tidy -p ./build {} \;
- name: Test
working-directory: ./lab/vtsh/test
run: python3 -m unittest discover