2023-01-05 21:13:10 +01:00
|
|
|
name: 'CI'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [develop]
|
|
|
|
pull_request:
|
|
|
|
branches: [master, develop]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
steps:
|
2023-06-24 20:39:14 +02:00
|
|
|
- uses: 'actions/checkout@v3.5.3'
|
2023-01-05 21:13:10 +01:00
|
|
|
|
|
|
|
- name: 'Install Build Tools'
|
|
|
|
run: 'sudo apt-get install --yes build-essential gcc make clang-format'
|
|
|
|
|
2023-06-24 21:09:19 +02:00
|
|
|
- run: 'gcc --version'
|
|
|
|
|
2023-01-05 21:13:10 +01:00
|
|
|
- run: 'make'
|
|
|
|
- run: 'make run'
|
|
|
|
- run: 'make test'
|
|
|
|
- run: 'make lint'
|
|
|
|
- run: 'make clean'
|
2023-01-06 14:40:15 +01:00
|
|
|
|
|
|
|
lint-commit:
|
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
steps:
|
2023-06-24 20:39:14 +02:00
|
|
|
- uses: 'actions/checkout@v3.5.3'
|
2023-01-06 14:40:15 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-06-24 20:39:14 +02:00
|
|
|
- uses: 'wagoid/commitlint-github-action@v5.4.1'
|