32 lines
658 B
YAML
32 lines
658 B
YAML
|
name: Go Test
|
||
|
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
stable:
|
||
|
description: 'Stable Release'
|
||
|
required: false
|
||
|
type: boolean
|
||
|
prerelease:
|
||
|
description: 'Pre Release'
|
||
|
required: false
|
||
|
type: boolean
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
|
||
|
- run: echo stable=${{ inputs.stable }} pre=${{ inputs.prerelease }}
|
||
|
|
||
|
- name: Set up Go
|
||
|
uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: 1.21.1
|
||
|
|
||
|
- run: go install github.com/psanetra/git-semver/cli@master
|
||
|
|
||
|
- run: cli next --stable=false
|
||
|
|
||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|