Switched from custom pre-commit script to using the pre-commit tool
Some checks failed
Build and deploy automation_rs / Build automation_rs (push) Failing after 1m16s
Build and deploy automation_rs / Build Docker image (push) Has been skipped
Build and deploy automation_rs / Deploy Docker container (push) Has been skipped

This commit is contained in:
2024-05-07 23:40:23 +02:00
parent 794b8eef19
commit 70b34f6025
4 changed files with 50 additions and 25 deletions

View File

@@ -15,17 +15,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: "DEBUG"
run: |
sleep 10
echo "Hello"
echo "pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}"
echo "Hello?"
- uses: pre-commit/action@v3.0.1
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: Formatting
uses: actions-rust-lang/rustfmt@v1
- name: Clippy
run: cargo clippy --all-targets --all -- -D warnings
- name: Build
run: cargo build --release