2025-05-21 10:05:33 +02:00
|
|
|
name: CI
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
test:
|
|
|
|
|
name: cargo test
|
|
|
|
|
runs-on: docker
|
|
|
|
|
steps:
|
2025-05-28 10:17:10 +02:00
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
2025-05-21 10:05:33 +02:00
|
|
|
|
2025-05-28 09:36:12 +02:00
|
|
|
- uses: https://github.com/oxsecurity/megalinter@v8
|
|
|
|
|
env:
|
|
|
|
|
MEGALINTER_FLAVOR: cupcake
|
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
|
2025-05-28 11:17:13 +02:00
|
|
|
VALIDATE_ALL_CODEBASE: false
|
2025-05-28 10:28:28 +02:00
|
|
|
GITHUB_STATUS_REPORTER: ${{ !env.ACT }}
|
|
|
|
|
GITHUB_COMMENT_REPORTER: ${{ !env.ACT }}
|
2025-05-27 13:07:46 +02:00
|
|
|
|
2025-05-21 10:44:08 +02:00
|
|
|
- uses: https://github.com/wackbyte/rust-toolchain@trunk
|
|
|
|
|
with:
|
|
|
|
|
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
|