Skip to content

Commit

Permalink
Merge pull request #4 from raunakab/gh-workflows
Browse files Browse the repository at this point in the history
Add new workflow for pushes+PRs to master
  • Loading branch information
Raunak Bhagat authored May 30, 2024
2 parents a38aab1 + 362b68a commit e0528e3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Master

on:
push:
branches: [master]
pull_request:
branches: [master]

env:
CARGO_TERM_COLOR: always

jobs:
check-test-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: false
components: rustfmt
- name: Assert project compiles
run: cargo check --verbose
- name: Assert all tests pass
run: cargo test --verbose
- name: Assert formatting is valid
run: cargo +nightly fmt --verbose --check

0 comments on commit e0528e3

Please sign in to comment.