add check tests in CI
This commit is contained in:
parent
9834cf509d
commit
d9dcc44dec
25
.gitea/workflows/check-tests.yml
Normal file
25
.gitea/workflows/check-tests.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Tests Check
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
clang-format-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install g++
|
||||||
|
run: |
|
||||||
|
apt-get update -y
|
||||||
|
apt-get upgrade -y
|
||||||
|
apt-get install -y g++ cmake make
|
||||||
|
|
||||||
|
- name: Check code formatting
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
cmake --build .
|
||||||
|
make test
|
Loading…
Reference in a new issue