Files
lab19-c-ci/.gitea/workflows/ci.yml
21_SavchenkoAA a6862e77e4
Some checks failed
CI Pipeline / Lint (push) Failing after 40s
CI Pipeline / Test (push) Has been skipped
CI Pipeline / Build (push) Has been skipped
Обновить .gitea/workflows/ci.yml
2026-05-16 20:20:44 +03:00

51 lines
1.2 KiB
YAML

name: CI Pipeline
on:
push:
branches:
- main
- master
- ci/setup
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cppcheck
run: sudo apt-get update && sudo apt-get install -y cppcheck
- name: Run cppcheck
run: |
cppcheck --enable=all --inconclusive -I include/ src/ tests/ --error-exitcode=1
test:
name: Test
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake build-essential
- name: Configure
run: cmake -B build
- name: Build
run: cmake --build build
- name: Run tests
run: |
cd build
ctest --output-on-failure --verbose
./test_calculator
build:
name: Build
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake build-essential
- name: Build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build