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
|
name: Go
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@@ -20,11 +21,10 @@ jobs:
|
|||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Lint
|
- name: golangci-lint
|
||||||
run: |
|
uses: golangci/golangci-lint-action@v2
|
||||||
export PATH=$PATH:$(go env GOPATH)/bin
|
with:
|
||||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.2
|
version: v1.29
|
||||||
golangci-lint run ./...
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user