Skip to content

Update release infrastructure #2

Update release infrastructure

Update release infrastructure #2

Workflow file for this run

name: "Tests"
on:
push:
branches:
- "**"
tags-ignore:
- "**"
pull_request:
jobs:
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 Plugins
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