Implement better errors using thiserror #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check code | |
# Configures this workflow to run every time a change is pushed | |
on: [push, pull_request] | |
# Make sure CI fails on all warnings, including Clippy lints | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
check-code: | |
runs-on: ubuntu-latest | |
# It is not run if it is a pull_request synchronize event on the main repo | |
if: ${{ ! (github.event_name == 'pull_request' && github.event.action == 'synchronize' && github.event.pull_request.head.repo.full_name == 'marcelropos/HM-DiscordBot')}} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo check | |
- run: cargo clippy --all-targets --all-features |