ADDED .github/dependabot.yml Index: .github/dependabot.yml ================================================================== --- /dev/null +++ .github/dependabot.yml @@ -0,0 +1,10 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" ADDED .github/workflows/rust-clippy.yml Index: .github/workflows/rust-clippy.yml ================================================================== --- /dev/null +++ .github/workflows/rust-clippy.yml @@ -0,0 +1,32 @@ +name: rust-clippy analyze + +on: + push: + branches: [ "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "master" ] + +jobs: + rust-clippy-test: + name: Run rust-clippy analyzing + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Install Rust toolchain + uses: hecrj/setup-rust-action@v1 + with: + rust-version: stable + + - uses: Swatinem/rust-cache@v2 + + - name: Run tests + run: cargo test --all-features + + - name: Run rust-clippy + run: cargo clippy --all-features