-
-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (42 loc) · 1.11 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
---
name: lint
on:
push:
branches:
- master
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:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master
- name: Setup
uses: nhatthm/gh-actions/find-go-version@master
- name: Install Go
uses: nhatthm/gh-actions/setup-go@master
with:
go-version: ${{ env.GO_LATEST_VERSION }}
- name: Lint
uses: nhatthm/gh-actions/golangci-lint@master
with:
working-directory: ${{ matrix.module }}
args: --timeout=5m
lint-gherkin:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master
- name: Lint
uses: nhatthm/gh-actions/gherkin-lint@master
with:
feature_files: tests/features/*
config_file: tests/.gherkin-lintrc