Skip to content

Rename the main branch to 'main' (for real this time) #22

Rename the main branch to 'main' (for real this time)

Rename the main branch to 'main' (for real this time) #22

Workflow file for this run

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 ./...