ci: split tests and release workflows, drop secret requirement
Release no longer runs or depends on the test suite, and uses the built-in automatic GITEA_TOKEN with a contents: write permission so no secret needs to be configured. Tests moved to a dedicated workflow that runs on every push and pull request. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2 files changed
+58
-45
No files matched your search
@@ -0,0 +1,40 @@
|
||||
# Gitea Actions — Tests
|
||||
#
|
||||
# Dedicated test workflow: builds the application and runs the full test suite
|
||||
# (ctest) on every push and pull request. Kept separate from the release
|
||||
# workflow so a failing test never blocks a release.
|
||||
|
||||
name: tests
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
cmake g++ make qt6-base-dev
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake -B build \
|
||||
-DFWS_BUILD_EXAMPLE_PLUGIN=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cmake --build build -j$(nproc)
|
||||
|
||||
- name: Run all tests
|
||||
run: |
|
||||
cd build
|
||||
ctest --output-on-failure
|
||||
Reference in new issue
Block a user