Skip to content

Modernize - use golang-1.21 and latest GitHub actions. #2

Modernize - use golang-1.21 and latest GitHub actions.

Modernize - use golang-1.21 and latest GitHub actions. #2

Workflow file for this run

name: Go build
on: [push, pull_request]
jobs:
build:
name: Build Go
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Check out code
uses: actions/checkout@v4
- name: Check go fmt has been run
run: |
echo 'Check if go fmt has been run'
make go_fmt
[[ "$(git diff --name-only | wc -l)" -eq "0" ]]
- name: Build
run: make