Skip to content

Update GitHub Actions versions (#4) #14

Update GitHub Actions versions (#4)

Update GitHub Actions versions (#4) #14

Workflow file for this run

name: Go Build & Format
on:
pull_request:
push:
branches:
- main
- '*'
tags:
jobs:
build:
name: Build program
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.16'
- name: Get dependencies
run: go mod download
- name: Build
run: go build
- name: Verify gofmt
run: X=$(gofmt -s -d .) ; [[ "$X" == "" ]] || (echo "$X" ; exit 1)
shell: bash