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 e267d22 commit d208232
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,33 @@ jobs:
- { current-version: "1.0.0", version-fragment: "patch", expected-version: "1.0.1" }

# Pre-Version increments from stable
- { current-version: "1.0.0", version-fragment: "alpha", expected-version: "1.0.1-alpha.1" }
- { current-version: "1.0.0", version-fragment: "beta", expected-version: "1.0.1-beta.1" }
- { current-version: "1.0.0", version-fragment: "rc", expected-version: "1.0.1-rc.1" }
- { 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" }
- { current-version: "1.0.0", version-fragment: "rc", expected-version: "1.0.1-rc.0" }

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

# 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-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
# 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-beta.1", version-fragment: "beta", expected-version: "1.0.1-beta.2" }
- { current-version: "1.0.1-rc.1", version-fragment: "rc", expected-version: "1.0.1-rc.2" }
- { 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-beta.1", version-fragment: "rc", expected-version: "1.0.1-rc.1" }

# Transition from pre-version to stable
- { current-version: "1.0.1-alpha.1", version-fragment: "patch", expected-version: "1.0.1" }
- { current-version: "1.0.1-beta.1", version-fragment: "patch", expected-version: "1.0.1" }
- { current-version: "1.0.1-rc.1", version-fragment: "patch", expected-version: "1.0.1" }
- { current-version: "1.0.1-alpha.1", version-fragment: "stable", expected-version: "1.0.1" }
- { current-version: "1.0.1-beta.1", version-fragment: "stable", expected-version: "1.0.1" }
- { current-version: "1.0.1-rc.1", version-fragment: "stable", expected-version: "1.0.1" }

steps:
- name: Checkout repository
Expand Down

0 comments on commit d208232

Please sign in to comment.