name: Run Tests on PR on: pull_request: branches: - master jobs: tests: runs-on: ubuntu-latest env: GO111MODULE: on steps: - uses: actions/checkout@v2 - name: Unit test run: | go test -v ./... - name: Build test run: | go build cmd/dashboard/main.go go build cmd/agent/main.go - name: Run Gosec Security Scanner uses: securego/gosec@master with: args: -exclude=G104 ./...