Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
QueenOfSquiggles committed Nov 26, 2023
2 parents 3017e7d + 284af55 commit 029d9b2
Showing 1 changed file with 56 additions and 13 deletions.
69 changes: 56 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,71 @@
name: Rust Test and Benchmark

on:
push:
branches:
- master
on:
pull_request:
types: [opened, synchronize]
branches:
- main
workflow_dispatch:
push:
branches:
- main

name: Continuous integration

jobs:
build:
check:
name: Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- uses: actions-rs/cargo@v1.0.1
override: true
- uses: actions-rs/cargo@v1
with:
command: check

- uses: actions-rs/[email protected]
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@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 029d9b2

Please sign in to comment.