Update release infrastructure #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Validator Tests" | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "**" | |
pull_request: | |
jobs: | |
Validator-Tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, windows, macos] | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v4 | |
- name: Setup Go with Cache | |
uses: jfrog/.github/actions/install-go-with-cache@main | |
- name: Install Linter | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin | |
shell: bash | |
- name: Test Validator | |
run: | | |
# Configure Git | |
git config --global user.email "[email protected]" | |
git config --global user.name "jfrog-ecosystem" | |
# Run linter | |
golangci-lint run --enable govet,errcheck,gosimple,ineffassign,staticcheck,typecheck,unused,gocritic,asasalint,asciicheck,errchkjson,exportloopref,forcetypeassert,makezero,nilerr,unparam,unconvert,wastedassign,usestdlibvars,gosec | |
# Run tests | |
go test -v ./... -timeout 0 -race | |
working-directory: pipelinesScripts/validator |