Skip to content

File load, key lookup, and switch statement #703

File load, key lookup, and switch statement

File load, key lookup, and switch statement #703

Workflow file for this run

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 }}