From f19ca77723cb8373311241fbf7beba3dd32a1e05 Mon Sep 17 00:00:00 2001 From: Antonius Naumann Date: Mon, 11 Dec 2023 00:46:43 +0100 Subject: [PATCH] Add github action to audit dependencies --- .github/workflows/audit.yml | 22 ++++++++++++++++++++++ .github/workflows/end-to-end.yml | 2 +- README.md | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 0000000..126160d --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,22 @@ +name: Dependencies + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: "12 16 * * 5" + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Cargo Outdated + run: cargo outdated --exit-code 1 + - name: Cargo Audit + run: cargo audit -D warnings \ No newline at end of file diff --git a/.github/workflows/end-to-end.yml b/.github/workflows/end-to-end.yml index eb89efa..c2acc46 100644 --- a/.github/workflows/end-to-end.yml +++ b/.github/workflows/end-to-end.yml @@ -13,7 +13,7 @@ jobs: tests: strategy: matrix: - os: [macos-latest, macos-11, macos-12] + os: [macos-latest, macos-11, macos-12, macos-13] test: [init, package] runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 3beb7ba..2e26412 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ [![Examples](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/examples.yml/badge.svg)](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/examples.yml) [![E2E Tests](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/end-to-end.yml/badge.svg)](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/end-to-end.yml) [![Clippy](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/clippy.yml/badge.svg)](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/clippy.yml) +[![Dependencies](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/audit.yml/badge.svg)](https://github.com/antoniusnaumann/cargo-swift/actions/workflows/audit.yml) > A cargo plugin to easily build Swift packages from Rust code