Skip to content

NotEmpty: do not handle n > 1 and n >= 1 cases #26

NotEmpty: do not handle n > 1 and n >= 1 cases

NotEmpty: do not handle n > 1 and n >= 1 cases #26

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]
env:
GO_VERSION: ^1.21
GOLANGCI_LINT_VERSION: v1.54.0
jobs:
go_install:
runs-on: ubuntu-latest
steps:
- uses: rlespinasse/github-slug-action@v4.4.1
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- run: cd /tmp && go install github.com/Antonboom/testifylint@${{ env.version }} && testifylint -h
env:
version: ${{ env.GITHUB_REF_NAME == 'master' && 'master' || env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout=5m
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
- run: go test -coverpkg=./analyzer,./internal/analysisutil,./internal/checkers,./internal/config -coverprofile=coverage.out ./...
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out