-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 870 Bytes
/
Copy pathlint.yaml
File metadata and controls
46 lines (38 loc) · 870 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
43
44
45
46
name: Golang CI Linter
on:
push:
branches:
- main
paths-ignore:
- '.github'
- 'LICENSE.MD'
- 'README.md'
- 'docs/**'
- 'infra/**'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
env:
IMAGE_USERNAME: codiew
IMAGE_NAME: codiew/codenire-playground
steps:
- name: Checkout code
uses: actions/checkout@v4
# Playground
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Lint Playground
uses: golangci/golangci-lint-action@v6
with:
version: v1.64.5
# Sandbox
- name: Copy .golangci config
run: |
cp ./.golangci.yml ./sandbox/
- name: Lint sandbox
uses: golangci/golangci-lint-action@v6
with:
version: v1.64.5
working-directory: sandbox