Skip to content

Commit

Permalink
feat(ci): Add github action lint
Browse files Browse the repository at this point in the history
I have copied all from gitlab to github action. Also I fixed one lint issue that is only on Linux.
  • Loading branch information
igor-hnizdo authored Sep 8, 2022
1 parent 5d72637 commit 4aafcc1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-go-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "[Check] go validation"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
validate-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Lint
uses: golangci/[email protected]
with:
version: v1.49.0
- name: Version check
run: diff -u VERSION <(grep "var version = " trezord.go | cut -f 2 -d '"')
1 change: 1 addition & 0 deletions usb/hidapi_shim.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux || freebsd || openbsd
// +build linux freebsd openbsd

// shim for linux and freebsd so that trezord.go builds
Expand Down

0 comments on commit 4aafcc1

Please sign in to comment.