name: Run tests with clang

on: [push, pull_request]

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - name: Install packages
      run: source tools/ci.sh && ci_tests_clang_setup
    - name: Build tests
      run: source tools/ci.sh && ci_tests_clang_build
    - name: Run tests
      run: source tools/ci.sh && ci_tests_clang_run
