Skip to content

Commit

Permalink
Merge pull request #7 from QueenOfSquiggles/QueenOfSquiggles-patch-1
Browse files Browse the repository at this point in the history
Update rust.yml
  • Loading branch information
QueenOfSquiggles authored Nov 26, 2023
2 parents 6a4d432 + b9c98c0 commit e42f047
Showing 1 changed file with 58 additions and 20 deletions.
78 changes: 58 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,64 @@
name: Rust Test and Benchmark
on: [push, pull_request]

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]
workflow_dispatch:
name: Continuous integration

jobs:
build:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Rust Cache
uses: Swatinem/[email protected]
- name: rust-cargo
uses: actions-rs/[email protected]
- name: rust-check
run: cargo check --verbose
- name: rust-test
run: cargo test --verbose
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings

0 comments on commit e42f047

Please sign in to comment.