28 lines
867 B
YAML
28 lines
867 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: cargo test
|
|
runs-on: docker
|
|
steps:
|
|
- uses: https://code.forgejo.org/actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
|
|
|
|
- uses: https://github.com/oxsecurity/megalinter@e08c2b05e3dbc40af4c23f41172ef1e068a7d651 # v8
|
|
env:
|
|
MEGALINTER_FLAVOR: cupcake
|
|
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
|
|
GITHUB_STATUS_REPORTER: ${{ !env.ACT }}
|
|
GITHUB_COMMENT_REPORTER: ${{ !env.ACT }}
|
|
|
|
- uses: https://github.com/wackbyte/rust-toolchain@trunk
|
|
with:
|
|
toolchain: stable
|
|
|
|
#- run: cargo test --all-features
|
|
- run: cargo run -- --help
|