Skip to content

refactor: reduce complexity of shouldTrack #17

refactor: reduce complexity of shouldTrack

refactor: reduce complexity of shouldTrack #17

Workflow file for this run

name: Main
on:
push:
pull_request:
env:
GO_VERSION: 1.22
YAEGI_VERSION: v0.16.1
CGO_ENABLED: 0
jobs:
main:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: Install Yaegi ${{ env.YAEGI_VERSION }}
run: curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $(go env GOPATH)/bin ${YAEGI_VERSION}
- name: Check and get dependencies
run: |
go mod tidy
go mod vendor
git diff --exit-code
- name: Lint code
uses: golangci/golangci-lint-action@v8
- name: Run tests
run: go test -v -cover ./...
- name: Run tests with Yaegi
run: yaegi test -v .