spawn app for each integration test
Some checks failed
Cargo / build (push) Failing after 2m55s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s

also adds missing dep to flake
This commit is contained in:
2025-07-18 09:04:37 +01:00
parent a54648d11b
commit 9a2caf0921
4 changed files with 62 additions and 11 deletions

View File

@ -0,0 +1,41 @@
name: Cargo
run-name: ${{ gitea.actor }} is verifying cargo build and tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Build Project
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Run Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -Dwarnings -Wclippy::correctness -Wclippy::complexity -Wclippy::perf -Aclippy::missing_errors_doc -Aclippy::missing_panics_doc
- name: Run Unit Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --lib --bins
- name: Run Integration Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --tests '*'