Skip to content

Commit

Permalink
Run unit tests in container.
Browse files Browse the repository at this point in the history
  • Loading branch information
davits committed Sep 4, 2023
1 parent 977d716 commit 2000ebe
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Unit tests
on:
push:
branches: [ "main" ]

pull_request:
branches: [ "main" ]

Expand All @@ -11,17 +12,21 @@ env:
CXX: clang++

jobs:
build:

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 -G="Unix Makefiles"
run: cmake --preset=luabind
- name: Build
run: cmake --build --preset=luabind --target all
- name: Unit tests
Expand Down

0 comments on commit 2000ebe

Please sign in to comment.