2024-07-11 14:51:10 +02:00
|
|
|
on:
|
|
|
|
push:
|
2024-07-11 15:00:27 +02:00
|
|
|
branches: [main]
|
2024-07-11 14:02:10 +02:00
|
|
|
jobs:
|
2024-07-11 14:51:10 +02:00
|
|
|
build:
|
2024-07-11 14:02:10 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-11 15:00:27 +02:00
|
|
|
- id: checkout
|
|
|
|
name: checkout
|
|
|
|
uses: actions/checkout@v4
|
2024-07-12 18:04:21 +02:00
|
|
|
- uses: https://github.com/actions-rs/toolchain@v1
|
2024-07-11 15:00:27 +02:00
|
|
|
with:
|
2024-07-12 18:04:21 +02:00
|
|
|
toolchain: nightly
|
|
|
|
- uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
|
|
|
args: --release
|
2024-07-25 20:01:35 +02:00
|
|
|
- uses: https://github.com/actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --lib
|
2024-07-12 09:16:38 +02:00
|
|
|
clippy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- id: checkout
|
|
|
|
name: checkout
|
|
|
|
uses: actions/checkout@v4
|
2024-07-12 18:04:21 +02:00
|
|
|
- uses: https://github.com/actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
- uses: https://github.com/actions-rs/cargo@v1
|
2024-07-12 09:16:38 +02:00
|
|
|
with:
|
2024-07-12 18:04:21 +02:00
|
|
|
command: clippy
|
|
|
|
args: --fix --lib
|
2024-07-12 09:16:38 +02:00
|
|
|
- id: commit
|
|
|
|
name: commit
|
|
|
|
uses: https://github.com/EndBug/add-and-commit@v9
|
|
|
|
with:
|
|
|
|
author_name: "[Clippy]"
|
2024-07-12 02:07:39 +02:00
|
|
|
|