Skip to content

Commit

Permalink
Add Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PoignardAzur committed Apr 11, 2022
1 parent 9c4cafe commit daaf26d
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on:
push:
branches:
- master
pull_request:

jobs:
rustfmt:
runs-on: ubuntu-latest
name: cargo fmt
steps:
- uses: actions/checkout@v2

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
override: true

- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

test-stable:
runs-on: ubuntu-latest
name: cargo clippy+test
steps:
- uses: actions/checkout@v2

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
profile: minimal
override: true

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test

0 comments on commit daaf26d

Please sign in to comment.