common: fixes the type conversion #194
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: Build and test Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.18 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.18 | |
- name: Check out source code | |
uses: actions/checkout@v1 | |
- name: Format | |
run: if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi | |
if: matrix.os == 'ubuntu-latest' | |
- name: Go test | |
run: make check_fmt | |
- name: Go check build | |
run: make build |