add workflow
This commit is contained in:
parent
c6c50badcd
commit
ccabfa1c34
1 changed files with 41 additions and 0 deletions
41
.forgejo/workflows/uwu.yaml
Normal file
41
.forgejo/workflows/uwu.yaml
Normal file
|
@ -0,0 +1,41 @@
|
|||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: checkout
|
||||
name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
- uses: https://github.com/actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release
|
||||
- uses: https://github.com/actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --bin
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: checkout
|
||||
name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
- uses: https://github.com/actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --fix --bin
|
||||
- id: commit
|
||||
name: commit
|
||||
uses: https://github.com/EndBug/add-and-commit@v9
|
||||
with:
|
||||
author_name: "[Clippy]"
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue