-
-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (43 loc) · 1.06 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
name: lint
on:
push:
branches:
- master
env:
GO_VERSION: 1.18
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-go:
name: lint
strategy:
fail-fast: false
matrix:
module: [ ".", "tests/suite", "tests/mssql", "tests/mysql", "tests/postgres" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- id: vars
run: |
make gha-vars
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: ${{ steps.vars.outputs.GOLANGCI_LINT_VERSION }}
working-directory: ${{ matrix.module }}
lint-gherkin:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: gherkin-lint
uses: nhatthm/[email protected]
with:
feature_files: tests/features/*
config_file: tests/.gherkin-lintrc