Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the workflows so there is no duplicate actions for PRs. #2

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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