Readd next-release support to action #120
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- main | |
env: | |
GO111MODULE: on | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21.x | |
- uses: actions/checkout@v3 | |
- run: go test ./... | |
test-action-latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- id: git-describe-semver | |
uses: choffmeister/git-describe-semver@next-release-action | |
with: | |
version: latest | |
dir: . | |
fallback: v0.0.0-init | |
drop-prefix: true | |
prerelease-prefix: prefix | |
prerelease-suffix: suffix | |
prerelease-timestamped: true | |
- name: Verify output | |
run: | | |
if [[ -z "${{ steps.git-describe-semver.outputs.version }}" ]]; then | |
echo Output version is empty! | |
exit 1 | |
fi | |
test-action-0-3-11: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- id: git-describe-semver | |
uses: choffmeister/git-describe-semver@next-release-action | |
with: | |
version: 0.3.11 | |
dir: . | |
fallback: v0.0.0-init | |
drop-prefix: true | |
prerelease-prefix: prefix | |
prerelease-suffix: suffix | |
prerelease-timestamped: true | |
- name: Verify output | |
run: | | |
if [[ -z "${{ steps.git-describe-semver.outputs.version }}" ]]; then | |
echo Output version is empty! | |
exit 1 | |
fi |