Bash tool

This commit is contained in:
2025-05-03 11:24:34 -07:00
parent 20bf33fa05
commit 00c88ccf51
12 changed files with 1286 additions and 152 deletions

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

@ -0,0 +1,55 @@
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
typos:
name: "Typos"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check typos
uses: crate-ci/typos@master
with:
config: ./typos.toml
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
- name: Run clippy
working-directory: ./index
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
- name: Build
working-directory: ./index
run: cargo build --release
- name: Test
working-directory: ./index
run: cargo test --release