-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 919 Bytes
/
lint.yml
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
---
name: Lint
on:
push:
branches: [latest, v*]
pull_request:
branches: [latest, v*]
jobs:
build:
strategy:
matrix:
python-version: [3.10]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -r requirements_test.txt
shell: bash
- name: Running Yamllint
run: yamllint .
shell: bash
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build binary
run: |
cd lib/main/
go build
shell: bash
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: '--config=../.golangci.yml'
working-directory: 'lib'