mirror of
https://github.com/rm-dr/datapath.git
synced 2025-12-07 11:54:12 -08:00
Initial commit: tooling + CI
This commit is contained in:
72
.github/workflows/ci.yml
vendored
Normal file
72
.github/workflows/ci.yml
vendored
Normal 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
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/target
|
||||
*.ignore
|
||||
.lycheecache
|
||||
5
lychee.toml
Normal file
5
lychee.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
cache = true
|
||||
max_cache_age = "2d"
|
||||
verbose = "info"
|
||||
glob_ignore_case = false
|
||||
exclude = ['^http(s)?://localhost', '^file://']
|
||||
1
rustfmt.toml
Normal file
1
rustfmt.toml
Normal file
@@ -0,0 +1 @@
|
||||
hard_tabs = true
|
||||
8
typos.toml
Normal file
8
typos.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[default]
|
||||
extend-ignore-re = [
|
||||
# Line block with # spellchecker:<on|off>
|
||||
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
|
||||
]
|
||||
|
||||
[files]
|
||||
extend-exclude = []
|
||||
Reference in New Issue
Block a user