diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa4df51..5e00bde 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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