You've already forked go-semantic-release
chore(ci): add pull request
This commit is contained in:
committed by
Felix Wiedmann
parent
0c4310d60b
commit
4574d00c28
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@@ -1,5 +1,6 @@
|
||||
name: Go
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
@@ -20,11 +21,10 @@ jobs:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
export PATH=$PATH:$(go env GOPATH)/bin
|
||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.2
|
||||
golangci-lint run ./...
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.29
|
||||
|
||||
- name: Run tests
|
||||
run: go test ./...
|
||||
|
||||
Reference in New Issue
Block a user