bebot/.gitea/workflows/ci.yaml

24 lines
536 B
YAML
Raw Normal View History

2023-09-20 04:23:40 +00:00
name: CI
on:
push:
branches:
- main
pull_request: {}
jobs:
ci:
name: janitorial
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: https://github.com/actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy, rustfmt
- name: clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: formatting
run: cargo fmt --check
- name: test
run: cargo test --release