Skip to content

Run unit tests in container. #27

Run unit tests in container.

Run unit tests in container. #27

Workflow file for this run

name: Unit tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CC: clang
CXX: clang++
jobs:
unit_tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: cmake --preset=luabind
- name: Build
run: cmake --build --preset=luabind --target all
- name: Unit tests
run: ctest --preset=unit_tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}