docs: Update CI build badge to latest workflow names #19
Workflow file for this run
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
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
name: Format, Lint and Test | |
jobs: | |
check: | |
name: Cargo Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo check --locked | |
fmt: | |
name: Formatter Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo fmt --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo clippy --no-deps --locked | |
check-bump: | |
name: Check Version Bump | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check if version needs bumped | |
run: | | |
if ! git diff Cargo.toml; then | |
echo "ERROR You forgot to bump the version number in Cargo.toml!!!" | |
echo "ERROR Edit the version number in Cargo.toml, and then make a `chore:` commit and push it to fix this." | |
echo "ERROR Make sure you follow SemVer 2.0 when bumping the version number." | |
exit 1 | |
# Note: This is very rudimentary check, but it is better than nothing. | |
fi | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo test --locked |