Added github workflow test (#1)

* Delete main.yml

* Delete release.yml

* Delete release-cross.yml

* Added github workflows

* Changed workflow values
This commit is contained in:
Thomas Schönauer
2022-10-16 17:27:16 +00:00
committed by GitHub
parent 57f38a0b29
commit 2e9e5c5c34
6 changed files with 138 additions and 181 deletions

55
.github/workflows/check-and-lint.yaml vendored Normal file
View File

@@ -0,0 +1,55 @@
on:
pull_request:
push:
branches:
- main
name: Check and Lint
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
name: Clippy Output