Skip to content

Some renaming and tests #811

Some renaming and tests

Some renaming and tests #811

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.23
- 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/matchers/fastregex
- name: StaticCheck
run: |
go run honnef.co/go/tools/cmd/staticcheck@2024.1.1 ./...
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6.1.0
with:
version: v2.5.0
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}