Skip to content

Commit

Permalink
Merge pull request #1 from marcoow/ci
Browse files Browse the repository at this point in the history
Set up CI
  • Loading branch information
marcoow authored Dec 6, 2023
2 parents 75085cf + 9320d7f commit 24ceee4
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
push:
branches:
- main
pull_request: {}

jobs:
cargo_check:
name: "Cargo Check"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: cargo check
uses: actions-rs/[email protected]
with:
command: check

rustfmt:
name: "Rust Format"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt

- name: fmt
uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check

clippy:
name: "Clippy"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy

- name: clippy
uses: actions-rs/[email protected]
with:
command: clippy
args: --all-targets -- -D warnings

test:
name: "Test"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: test
run: cargo test

0 comments on commit 24ceee4

Please sign in to comment.