Skip to content

Commit

Permalink
Create rust.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtlawrence authored Sep 7, 2023
1 parent 29ee989 commit 408d0e5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Test

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: rust-toolchain
uses: actions-rs/[email protected]
with:
profile: minimal
components: rustfmt,clippy

- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: Check formatting
run: cargo fmt --all --check
- name: Check clippy
run: cargo clippy -- -D warnings

0 comments on commit 408d0e5

Please sign in to comment.