feat: update workflow

This commit is contained in:
LIAUD Corentin
2024-10-24 12:21:29 +02:00
parent 95fe89a12c
commit c53f5cc11b

View File

@@ -1,6 +1,12 @@
name: Rust - Quality
on: [push]
on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]
env:
CARGO_TERM_COLOR: always
@@ -21,12 +27,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run formatter
run : cargo fmt
run : cargo fmt --all --check
tests:
name: "tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose