2025-05-21 10:05:33 +02:00
|
|
|
name: CI
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
test:
|
|
|
|
|
name: cargo test
|
|
|
|
|
runs-on: docker
|
|
|
|
|
steps:
|
2025-06-25 16:06:59 +00:00
|
|
|
- uses: https://code.forgejo.org/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2025-05-21 10:05:33 +02:00
|
|
|
|
2025-11-30 00:03:39 +00:00
|
|
|
- uses: https://github.com/oxsecurity/megalinter@55a59b24a441e0e1943080d4a512d827710d4a9d # v9
|
2025-05-28 09:36:12 +02:00
|
|
|
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
|