Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vihu committed Nov 20, 2023
1 parent 2880707 commit f2f90ff
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

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

jobs:
rust:
runs-on: ubuntu-latest
steps:
- name: Setup | Cancel previous runs
uses: styfle/[email protected]

- name: Setup | Checkout
uses: actions/checkout@v3

- name: Setup | Apt packages
run: sudo apt-get update

- name: Setup | Rust toolchain
uses: dtolnay/[email protected]
with:
components: clippy, rustfmt

- name: Setup | Rust cache
uses: Swatinem/rust-cache@v2

- name: Hygiene | Formatting
run: cargo fmt -- --check

- name: Hygiene | Clippy
run: cargo clippy -- -Dclippy::all -Dwarnings
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
!src
!src/*
!src/**/*
!.github
!.github/*
!.github/**/*

0 comments on commit f2f90ff

Please sign in to comment.