fix: remove unused Validator initialization causing clippy warnings
This commit is contained in:
40
.ci.yml
Normal file
40
.ci.yml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup Rust
|
||||||
|
run: |
|
||||||
|
rustup default stable
|
||||||
|
rustc --version
|
||||||
|
cargo --version
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --release
|
||||||
|
- name: Run tests
|
||||||
|
run: cargo test
|
||||||
|
- name: Clippy
|
||||||
|
run: cargo clippy -- -D warnings
|
||||||
|
release:
|
||||||
|
needs: test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build Release
|
||||||
|
run: |
|
||||||
|
cargo build --release --locked
|
||||||
|
- name: Create Release
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
target/release/env-guard
|
||||||
|
title: ${{ github.ref_name }}
|
||||||
|
body: "Release ${{ github.ref_name }}"
|
||||||
Reference in New Issue
Block a user