Skip to content

Commit

Permalink
Merge pull request #1 from cosmonaut-nz/summarising
Browse files Browse the repository at this point in the history
Setting up GH actions
  • Loading branch information
avastmick committed Nov 23, 2023
2 parents f8df89b + 68ee71f commit 863e342
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/rust-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: Rust Check

on:
push:
branches: [ ** ]
branches: [ "main" ]
pull_request:
branches: [ main ]
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
check:
build:

runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install rust
uses: actions-rs/toolchain@v1
Expand All @@ -24,4 +28,5 @@ jobs:
- name: Check formatting
run: cargo fmt -- --check
- name: Check clippy
run: cargo clippy --all-targets --all-features -- -D warnings
run: cargo clippy --all-targets --all-features -- -D warnings

0 comments on commit 863e342

Please sign in to comment.