Skip to content

run make format and make tidy before tests #6

run make format and make tidy before tests

run make format and make tidy before tests #6

Workflow file for this run

name: tests
on: [push]
jobs:
test:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
build-type: ['release', 'debug']
node-version: ['20', '22']
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt update
sudo apt-get install -y libstdc++-12-dev
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and setup
run: |
node -v
which node
clang++ -v
which clang++
make "${{ matrix.build-type }}"
# Run the clang-format and clang-tidy scripts. Any code formatting changes
# will trigger the build to fail (idea here is to get us to pay attention
# and get in the habit of running these locally before committing)
- name: Run format and tidy
run: |
make format
make tidy
- name: Run tests
run: |
npm test