-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from privacybydesign/github-actions
Added GitHub Actions workflow for status checks
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Workflow to check whether changes to master fulfill all requirements. | ||
name: Status checks | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
|
||
- name: Build | ||
run: go build -v -o uniqueid-issuer-linux-amd64 | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
|
||
- name: Run gofmt | ||
run: gofmt -d -e . | ||
|
||
- name: Run go vet | ||
run: go vet ./... | ||
|
||
- name: Install ineffassign | ||
run: go install github.com/gordonklaus/ineffassign@latest | ||
|
||
- name: Run ineffassign | ||
run: ineffassign ./... | ||
|
||
- name: Install misspell | ||
run: go install github.com/client9/misspell/cmd/misspell@latest | ||
|
||
- name: Run misspell | ||
run: misspell -error . |