30 lines
937 B
YAML
30 lines
937 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: cargo test
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://code.forgejo.org/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
|
|
- name: Super-linter
|
|
uses: https://github.com/super-linter/super-linter@502f4fe48a81a392756e173e39a861f8c8efe056 # v8.3.0 # x-release-please-version
|
|
env:
|
|
GITHUB_SERVER_URL: https://forgejo.wizeazz.nl
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# set validate all codebase to false to only check new or edited files
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_MARKDOWN: true
|
|
VALIDATE_RUST_CLIPPY: true
|
|
VALIDATE_GITLEAKS: true
|
|
VALIDATE_TRIVY: true
|
|
|
|
- name: Rust toolchain
|
|
uses: https://github.com/dtolnay/rust-toolchain@stable
|
|
|
|
#- run: cargo test --all-features
|
|
- run: cargo run -- --help
|