-
Notifications
You must be signed in to change notification settings - Fork 57
32 lines (31 loc) · 829 Bytes
/
lint.yaml
File metadata and controls
32 lines (31 loc) · 829 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
name: lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t pg-schema-diff-lint-runner -f ./build/Dockerfile.lint .
- name: Run lint
run: docker run pg-schema-diff-lint-runner
# The "lint" job will lint go (and SQL). The "go_lint" job will also lint go but adds comments to the PR on the lines
# containing the linting errors
go_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '1.25.0'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.7.0