diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml deleted file mode 100644 index fe0c363..0000000 --- a/.github/workflows/audit.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Audit - -on: ["push", "pull_request"] - -env: - CARGO_TERM_COLOR: always - RUST_TOOLCHAIN: 1.88.0 - -jobs: - audit: - name: Audit - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ env.RUST_TOOLCHAIN }} - - - name: Install cargo-audit - run: cargo install cargo-audit - - - name: Run security audit - run: cargo audit diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 678a9c1..7398b94 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,5 +1,4 @@ name: Builds - on: ["push", "pull_request"] permissions: diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 05308c5..1dcc8f0 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -1,4 +1,4 @@ -name: Coverage +name: Code Coverage on: ["push", "pull_request"] @@ -8,7 +8,6 @@ env: jobs: coverage: - name: Code Coverage runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.github/workflows/test.yaml b/.github/workflows/tests.yaml similarity index 90% rename from .github/workflows/test.yaml rename to .github/workflows/tests.yaml index cac5273..bef75d5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/tests.yaml @@ -1,4 +1,4 @@ -name: Tests +name: Tests & Checks on: ["push", "pull_request"] @@ -8,7 +8,6 @@ env: jobs: test: - name: Test runs-on: ubuntu-latest steps: @@ -52,3 +51,8 @@ jobs: - name: Check formatting run: cargo fmt -- --check + + - uses: taiki-e/install-action@cargo-audit + + - name: Run security audit + run: cargo audit diff --git a/README.md b/README.md index cc52905..e6737af 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ [![Tests Status][badge-test]][test] [![Build Status][badge-build]][build] [![Code Coverage][badge-coverage]][coverage] [![Online Demo][badge-online-demo]][demo] [![Last Commit][badge-last-commit]][commits] -[badge-test]: https://github.com/Xevion/Pac-Man/actions/workflows/test.yaml/badge.svg +[badge-test]: https://github.com/Xevion/Pac-Man/actions/workflows/tests.yaml/badge.svg [badge-build]: https://github.com/Xevion/Pac-Man/actions/workflows/build.yaml/badge.svg [badge-coverage]: https://coveralls.io/repos/github/Xevion/Pac-Man/badge.svg?branch=master [badge-demo]: https://img.shields.io/github/deployments/Xevion/Pac-Man/github-pages?label=GitHub%20Pages [badge-online-demo]: https://img.shields.io/badge/GitHub%20Pages-Demo-brightgreen [badge-last-commit]: https://img.shields.io/github/last-commit/Xevion/Pac-Man [build]: https://github.com/Xevion/Pac-Man/actions/workflows/build.yaml -[test]: https://github.com/Xevion/Pac-Man/actions/workflows/test.yaml +[test]: https://github.com/Xevion/Pac-Man/actions/workflows/tests.yaml [coverage]: https://coveralls.io/github/Xevion/Pac-Man?branch=master [demo]: https://xevion.github.io/Pac-Man/ [commits]: https://github.com/Xevion/Pac-Man/commits/master