feat: fmt ci

This commit is contained in:
2022-12-08 21:29:50 +01:00
parent 0000015052
commit 000001602c
6 changed files with 38 additions and 49 deletions

View File

@@ -1,15 +0,0 @@
name: Check
on: push
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
name: Check
steps:
- uses: actions/checkout@v2
- name: cargo check
run: cargo check

36
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Check
on: push
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
name: Check
steps:
- uses: actions/checkout@v3
- name: cargo check
run: cargo check
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v3
- name: cargo test
run: cargo test
clippy:
runs-on: ubuntu-latest
name: Lint (clippy)
steps:
- uses: actions/checkout@v3
- name: cargo clippy
run: cargo clippy -- -D warnings
fmt:
runs-on: ubuntu-latest
name: Format
steps:
- uses: actions/checkout@v3
- name: cargo fmt
run: cargo fmt --check

View File

@@ -1,15 +0,0 @@
name: Clippy
on: push
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
runs-on: ubuntu-latest
name: Lint (clippy)
steps:
- uses: actions/checkout@v2
- name: cargo clippy
run: cargo clippy -- -D warnings

View File

@@ -1,15 +0,0 @@
name: Tests
on: push
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v2
- name: cargo test
run: cargo test