Update Go path to reflect GitHub repo (#13) #8
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: Akita Test | |
on: push | |
jobs: | |
compile: | |
name: Compile Akita | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: Build | |
run: go build ./... | |
lint: | |
name: Lint Akita | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
cache: false | |
- name: Install golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: 'latest' | |
args: --timeout=10m | |
unit_test: | |
name: Unit Test Akita | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: Unit Test Akita | |
run: | | |
go test -coverprofile=cover.out ./... | |
go tool cover -func=cover.out > coverage.out | |
tail coverage.out |