mvw/.forgejo/workflows/ci.yml

29 lines
867 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:
- uses: https://code.forgejo.org/actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2025-05-21 10:05:33 +02:00
2025-06-25 16:06:59 +00:00
- uses: https://github.com/oxsecurity/megalinter@e08c2b05e3dbc40af4c23f41172ef1e068a7d651 # v8
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
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