Update node version for releaser workflow #336
Workflow file for this run
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: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
name: Test Code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ^1.19 | |
id: go | |
- name: Get dependencies | |
run: make get-dependencies | |
- name: Ensure that all files are properly formatted | |
run: | | |
FILES=$(gofmt -s -l cmd pkg) | |
if [ -n "${FILES}" ]; then | |
printf "Following files are not formatted: \n%s" "$FILES" | |
exit 1 | |
fi | |
- name: Go vet | |
run: make vet | |
- name: Test building | |
run: make build | |
- name: Run tests | |
run: make test |