-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (38 loc) · 989 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: rare
on:
pull_request:
push:
jobs:
rare:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.18
- name: Checkout
uses: actions/checkout@v1
- name: Get
run: go get -t -v ./...
- name: Vet
run: go vet $(go list ./... | grep -v /vendor/)
- name: Test
run: |
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
go test -tags=pcre2 rare/pkg/fastregex
- name: StaticCheck
run: |
go run honnef.co/go/tools/cmd/staticcheck ./...
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: v1.1.0
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}