Skip to content

Commit

Permalink
Merge pull request #2 from mdwn/update-workflows
Browse files Browse the repository at this point in the history
Update the workflows so there is no duplicate actions for PRs.
  • Loading branch information
mdwn authored Mar 26, 2024
2 parents 5aee3e4 + d97196e commit 58a886e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/mtrack.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -32,6 +40,7 @@ jobs:
- name: Run rustfmt
run: cargo fmt --all -- --check

# Make sure the tests pass.
test:
runs-on: ubuntu-latest
steps:
Expand All @@ -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:
Expand Down

0 comments on commit 58a886e

Please sign in to comment.