makes sure patch version does not contain any build or subpatch version #129
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: "CI" | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: CI/CD Test | |
# https://github.com/actions/virtual-environments/ | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v3 | |
- name: 🔧 Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
# Test | |
- name: 🌡️ Test | |
run: | | |
go run main.go -h && go run main.go version | |
chmod +x test.sh | |
./test.sh |