Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-draeger authored Dec 21, 2024
1 parent 990c657 commit b817ee1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- { current-version: "1.0.0", version-fragment: "minor", expected-version: "1.1.0" }
- { current-version: "1.0.0", version-fragment: "patch", expected-version: "1.0.1" }

- { current-version: "2.11.7", version-fragment: "major", expected-version: "3.0.0" }
- { current-version: "v2.11.7", version-fragment: "major", expected-version: "3.0.0" }
- { current-version: "2.11.7-alpha3", version-fragment: "major", expected-version: "3.0.0" }
- { current-version: "2.11.7-alpha.3", version-fragment: "major", expected-version: "3.0.0" }

# Pre-Version increments from stable
- { current-version: "1.0.0", version-fragment: "alpha", expected-version: "1.0.1-alpha.0" }
- { current-version: "1.0.0", version-fragment: "beta", expected-version: "1.0.1-beta.0" }
Expand All @@ -32,16 +37,19 @@ jobs:

# Pre-Version increments from existing pre-versions with increment 0
- { current-version: "1.0.1-alpha.0", version-fragment: "alpha", expected-version: "1.0.1-alpha.1" }
- { current-version: "1.0.1-alpha0", version-fragment: "alpha", expected-version: "1.0.1-alpha.1" }
- { current-version: "1.0.1-beta.0", version-fragment: "beta", expected-version: "1.0.1-beta.1" }
- { current-version: "1.0.1-rc.0", version-fragment: "rc", expected-version: "1.0.1-rc.1" }

# Pre-Version increments from existing pre-versions with increment >= 1
- { current-version: "1.0.1-alpha.1", version-fragment: "alpha", expected-version: "1.0.1-alpha.2" }
- { current-version: "1.0.1-alpha2", version-fragment: "alpha", expected-version: "1.0.1-alpha.3" }
- { current-version: "1.0.1-beta.2", version-fragment: "beta", expected-version: "1.0.1-beta.3" }
- { current-version: "1.0.1-rc.3", version-fragment: "rc", expected-version: "1.0.1-rc.4" }

# Transition between different pre-version types
- { current-version: "1.0.1-alpha.1", version-fragment: "beta", expected-version: "1.0.1-beta.1" }
- { current-version: "1.0.1-alpha1", version-fragment: "beta", expected-version: "1.0.1-beta.1" }
- { current-version: "1.0.1-beta.1", version-fragment: "rc", expected-version: "1.0.1-rc.1" }

# Transition from pre-version to stable
Expand Down

0 comments on commit b817ee1

Please sign in to comment.