Skip to content

Improvement/appearance (#60) #25

Improvement/appearance (#60)

Improvement/appearance (#60) #25

Workflow file for this run

name: lint
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
paths:
- cqllint/**
jobs:
check-style:
name: Code style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '^1.18'
cache: true
- name: lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: cqllint
args: --config=../.golangci.yml
skip-cache: true
skip-pkg-cache: true
skip-build-cache: true
test:
name: Test
needs: [check-style]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '^1.18'
cache: true
- name: Mod download
run: go mod download
- name: Run tests
run: go test ./cqllint/... -coverpkg=./cqllint/... -coverprofile=coverage_lint.out -v
- uses: actions/upload-artifact@v3
with:
name: coverage_lint
path: coverage_lint.out