Обновить .gitea/workflows/ci.yml
This commit is contained in:
@@ -3,11 +3,11 @@ name: CI Pipeline
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Запуск только при пуше в main
|
||||
- main
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: 1. Lint (Static Analysis)
|
||||
name: 1. Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -22,9 +22,9 @@ jobs:
|
||||
cppcheck --enable=all -I include/ --suppress=missingIncludeSystem src/ tests/ --error-exitcode=1
|
||||
|
||||
test:
|
||||
name: 2. Test (Unit Tests)
|
||||
name: 2. Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: lint # Запускается только если Lint прошел успешно
|
||||
needs: lint
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -40,9 +40,9 @@ jobs:
|
||||
cd build && ctest --output-on-failure
|
||||
|
||||
build:
|
||||
name: 3. Build (Release)
|
||||
name: 3. Build
|
||||
runs-on: ubuntu-latest
|
||||
needs: test # Запускается только если Test прошел успешно
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user