Skip to content

Merge pull request #67 from nirmata/test2CVE #326

Merge pull request #67 from nirmata/test2CVE

Merge pull request #67 from nirmata/test2CVE #326

Workflow file for this run

name: Tests
on:
push:
branches:
- 'main'
- 'release*'
pull_request:
branches:
- 'main'
- 'release*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
- name: Setup build env
uses: ./.github/actions/setup-build-env
with:
build-cache-key: pre-checks
- name: golangci-lint
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # pin@v3
with:
version: v1.48
skip-cache: true
- name: go fmt check
run: make fmt-check
- name: goimports check
run: make imports-check
- name: Checking unused pkgs using go mod tidy
run: make unused-package-check
- name: Go vet
run: make vet
- name: Unit test
run: make test-unit