Add Forgejo CI (build, test, fmt, clippy)
All checks were successful
ci / check (push) Successful in 43s
All checks were successful
ci / check (push) Successful in 43s
This commit is contained in:
parent
9325150315
commit
facbde55bd
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/ci.yml
Normal file
24
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: ci
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: system deps
|
||||
run: apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev curl ca-certificates build-essential
|
||||
- name: install rust
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal -c clippy -c rustfmt
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
- name: test
|
||||
run: cargo test --verbose
|
||||
- name: format
|
||||
continue-on-error: true
|
||||
run: cargo fmt --check
|
||||
- name: clippy
|
||||
continue-on-error: true
|
||||
run: cargo clippy --all-targets -- -D warnings
|
||||
Loading…
Add table
Add a link
Reference in a new issue