Rename the main branch to 'main' (for real this time) #22
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: Go | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- id: version | |
run: | | |
echo -n "version=" >> "$GITHUB_OUTPUT" | |
git describe >> "$GITHUB_OUTPUT" | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Build | |
run: go run build.go -version "${{steps.version.outputs.version}}" | |
- name: Test | |
run: go test -v -short ./... |