Add unique constraint support #237
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/setup-go@v4 | |
with: | |
go-version: '1.18' | |
cache: false | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.52.2 | |