Skip to content

add catch2 test framework #4

add catch2 test framework

add catch2 test framework #4

name: Ubuntu-clang
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: GetClang
run : |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
clang++-18 --version
- name: Test
# Build and Execute tests
working-directory: ${{github.workspace}}
run: bazel test --action_env=CXX=clang++-18 --action_env=CC=clang-18 --test_output=errors ...
- name: TestCatch2
working-directory: ${{github.workspace}}
run: bazel run //:catch2_test --action_env=CXX=clang++-18 --action_env=CC=clang-18 --test_output=errors --cxxopt=-std=c++20