Skip to content

Commit

Permalink
ci: Enforce version bump (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsengia authored Dec 28, 2023
2 parents c41884b + 81c2cb4 commit 3e002c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit 3e002c5

Please sign in to comment.