mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
* [CI] Improve checks - Adds .actrc so CI actions can be tested locally - Adds testing for variants of features so changes that break feature sets like disabling games can be caught - Adds more of the CI tests to pre-commit * [CI] Add more feature sets to test * [CI] Check github actions before comitting Requires act: https://github.com/nektos/act * [CI] Add caching between builds * [CI] Add caching everywhere * [CI] Add more feature tests * [CI] Add YAML schemas * [CI] Disable audit when running locally This is needed because the audit action requires a GITHUB_TOKEN which we don't have when running locally. * [CI] Move clippy to own job and use action that annotates PRs Using actions-rs/clippy-check means that PRs will problems will automatically have the relevant lines annotated * [CI] Don't unnecessarily cache targets for fmt
16 lines
472 B
YAML
16 lines
472 B
YAML
# yaml-language-server: $schema=https://raw.githubusercontent.com/softprops/github-actions-schemas/master/workflow.json
|
|
name: Security audit
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**/Cargo.toml'
|
|
- '**/Cargo.lock'
|
|
jobs:
|
|
security_audit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: rustsec/audit-check@v1.4.1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
if: ${{ !env.ACT }} # skip during local actions testing
|