chore: updated template files #115
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
################################################################## | |
# IMPORTANT NOTE # | |
# # | |
# This file is synced with https://github.com/atomicgo/template # | |
# Please make changes there. # | |
################################################################## | |
name: Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Build | |
run: go build -v . | |
- name: Test | |
run: go test -coverprofile="coverage.txt" -covermode=atomic -v -p 1 . | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 |