From d97196e9655104fd672c1723e866ff3a1bc4d390 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Tue, 26 Mar 2024 00:14:28 -0400 Subject: [PATCH] Update the workflows so there is no duplicate actions for PRs. The workflows have been updated so that PRs will no longer produce duplicate actions. --- .github/workflows/mtrack.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mtrack.yaml b/.github/workflows/mtrack.yaml index 950ec02..5963908 100644 --- a/.github/workflows/mtrack.yaml +++ b/.github/workflows/mtrack.yaml @@ -1,7 +1,14 @@ name: mtrack -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: + # Clippy effectively lints the code. clippy: runs-on: ubuntu-latest steps: @@ -17,6 +24,7 @@ jobs: - name: Run clippy run: cargo clippy --all --all-features + # Make sure the code is properly formatted. rustfmt-check: runs-on: ubuntu-latest steps: @@ -32,6 +40,7 @@ jobs: - name: Run rustfmt run: cargo fmt --all -- --check + # Make sure the tests pass. test: runs-on: ubuntu-latest steps: @@ -45,6 +54,7 @@ jobs: - name: Test mtrack run: cargo test --all --verbose + # Make sure all code has an appropriate license header. licensure: runs-on: ubuntu-latest steps: