More idiomatic Golang #10
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: Checks | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
check: | |
name: Check | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up golang | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.16.0' | |
- name: Install C libraries | |
run: sudo apt install libsensors-dev | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
skip-go-installation: true | |
- name: Install golint | |
run: go get golang.org/x/lint/golint | |
- name: Run checks | |
run: make check |