Merge pull request #23 from embrace-io/dependabot/go_modules/github.c… #71
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 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 |