-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (35 loc) · 818 Bytes
/
lint.yml
File metadata and controls
42 lines (35 loc) · 818 Bytes
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
name: Lint
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
lint:
name: Code Quality and Linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: true
- name: Make scripts executable
run: |
chmod +x ./tools/lint.sh
chmod +x ./build.sh
chmod +x ./test.sh
- name: Run linting
run: ./tools/lint.sh
- name: Upload lint results
if: failure()
uses: actions/upload-artifact@v4
with:
name: lint-results
path: |
*.log
lint-*.txt
retention-days: 7