Skip to content

Commit

Permalink
Merge pull request #7 from privacybydesign/github-actions
Browse files Browse the repository at this point in the history
Added GitHub Actions workflow for status checks
  • Loading branch information
sietseringers authored Feb 2, 2022
2 parents 5f1d9fc + 3707a5e commit e18ffe8
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/status-checks.yml
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 .

0 comments on commit e18ffe8

Please sign in to comment.