chore: add Gitea Actions workflow
This commit is contained in:
parent
f94bed5ddb
commit
25c78a2867
1 changed files with 21 additions and 0 deletions
21
.gitea/workflows/ci.yaml
Normal file
21
.gitea/workflows/ci.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
name: CI
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 📦 Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: 🦀 Setup Rust
|
||||||
|
uses: https://github.com/ATiltedTree/setup-rust@v1
|
||||||
|
with:
|
||||||
|
rust-version: stable
|
||||||
|
components: clippy
|
||||||
|
- name: 📥 Setup Rust cache
|
||||||
|
uses: https://github.com/Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
- name: 📎 Clippy
|
||||||
|
run: cargo clippy --all --features=rss -- -D warnings
|
||||||
|
- name: 🧪 Test
|
||||||
|
run: cargo test --features=rss --workspace
|
||||||
Reference in a new issue