Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Enforce version bump #27

Merged
merged 2 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/lint_fmt_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ jobs:
- uses: actions/checkout@v3
- run: cargo clippy --no-deps

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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spider-crab"
version = "0.1.1"
version = "0.1.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
Loading