clean up cicd

This commit is contained in:
Lennart
2025-09-21 21:24:18 +02:00
parent dc860a9768
commit eef45ef612

View File

@@ -1,96 +1,53 @@
on: [push, pull_request]
name: "CICD" name: "CICD"
on: [push, pull_request]
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write
env:
CARGO_TERM_COLOR: always
jobs: jobs:
check: check:
name: Check name: Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v4
- run: cargo check
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
continue-on-error: false
with:
command: check --workspace
test: test:
name: Test Suite name: Test Suite
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v4
- run: cargo test --all-features --verbose --workspace
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --verbose --workspace
coverage: coverage:
name: Test Coverage name: Test Coverage
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install tarpaulin - name: Install tarpaulin
run: cargo install cargo-tarpaulin run: cargo install cargo-tarpaulin
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Run cargo test - name: Run tarpaulin
uses: actions-rs/cargo@v1 run: cargo tarpaulin --workspace --all-features --exclude xml_derive --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }}
with:
command: tarpaulin
args: --workspace --all-features --exclude xml_derive --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }}
lints: lints:
name: Lints name: Lints
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - run: rustup component add rustfmt clippy
uses: actions/checkout@v2
- name: Install stable toolchain - name: Checkout sources
uses: actions-rs/toolchain@v1 uses: actions/checkout@v4
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt - name: Run cargo fmt
uses: actions-rs/cargo@v1 run: cargo fmt --all -- --check
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy - name: Run cargo clippy
uses: actions-rs/cargo@v1 run: cargo clippy -- -D warnings
with:
command: clippy
args: -- -D warnings