mvw/.forgejo/workflows/ci.yml

34 lines
991 B
YAML
Raw Normal View History

2025-05-21 10:05:33 +02:00
name: CI
on:
push:
pull_request:
jobs:
test:
name: cargo test
runs-on: docker
steps:
2025-12-04 14:02:18 +00:00
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@v6
2025-05-21 10:05:33 +02:00
2025-12-04 13:53:10 +00:00
- name: Super-linter
2025-12-04 14:00:36 +00:00
uses: https://github.com/super-linter/super-linter@v8.3.0 # x-release-please-version
2025-05-28 09:36:12 +02:00
env:
2025-05-28 10:34:09 +02:00
GITHUB_SERVER_URL: https://forgejo.wizeazz.nl
2025-05-28 10:28:28 +02:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2025-05-28 11:14:09 +02:00
# set validate all codebase to false to only check new or edited files
VALIDATE_ALL_CODEBASE: false
2025-12-04 14:24:50 +00:00
# GITHUB_STATUS_REPORTER: ${{ !env.ACT }}
# GITHUB_COMMENT_REPORTER: ${{ !env.ACT }}
2025-12-04 14:18:23 +00:00
VALIDATE_MARKDOWN: true
VALIDATE_RUST_2021: true
2025-12-04 14:00:04 +00:00
VALIDATE_RUST_CLIPPY: true
2025-12-04 14:18:23 +00:00
VALIDATE_GITLEAKS: true
2025-12-04 14:00:04 +00:00
VALIDATE_TRIVY: true
2025-05-27 13:07:46 +02:00
2025-12-04 14:02:18 +00:00
- name: Rust toolchain
uses: https://github.com/dtolnay/rust-toolchain@stable
2025-05-21 10:05:33 +02:00
#- run: cargo test --all-features
2025-05-21 10:44:08 +02:00
- run: cargo run -- --help