1
0
This commit is contained in:
2025-12-11 19:17:53 -08:00
parent 0d72b8a39c
commit 62fcf781c1
4 changed files with 89 additions and 0 deletions

72
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,72 @@
name: CI
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
typos:
name: "Check typos"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check typos
uses: crate-ci/typos@master
with:
config: ./typos.toml
lychee:
name: "Check links"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check links
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: --config ./lychee.toml .
fail: true
clippy:
name: "Clippy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install Rust"
run: |
sudo apt update
DEBIAN_FRONTEND=noninteractive \
sudo apt install --yes rustup
rustup default 1.91.0
rustup component add clippy
- name: Run clippy
run: cargo clippy --all-targets --all-features
buildandtest:
name: "Build and test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install Rust"
run: |
sudo apt update
DEBIAN_FRONTEND=noninteractive \
sudo apt install --yes rustup
rustup default 1.91.0
cargo install cargo-all-features
- name: Build
run: cargo build-all-features -- --release
- name: Test
run: cargo test-all-features -- --release
- name: Publish
run: cargo publish --dry-run

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
**/.env **/.env
**/*.ignore **/*.ignore
**/.DS_Store **/.DS_Store
.lycheecache

5
lychee.toml Normal file
View File

@@ -0,0 +1,5 @@
cache = true
max_cache_age = "2d"
verbose = "info"
glob_ignore_case = false
exclude = ['^http(s)?://localhost', '^file://']

11
typos.toml Normal file
View File

@@ -0,0 +1,11 @@
[default]
extend-ignore-re = [
# Line block with # spellchecker:<on|off>
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
]
[default.extend-words]
arange = "arange"
[files]
extend-exclude = []