sql/sqlclient: unbox driver codec functions (#3203) #1888
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
# # # # # # # # # # # # # # # # | |
# CODE GENERATED - DO NOT EDIT | |
# # # # # # # # # # # # # # # # | |
name: CI - General - Community Edition | |
on: | |
pull_request: | |
paths-ignore: | |
- 'doc/**' | |
- 'ops/**' | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'doc/**' | |
- 'ops/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
ATLAS_NO_UPGRADE_SUGGESTIONS: 1 | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: cmd/atlas/go.mod | |
- name: Run linters | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
args: --verbose | |
generate-cmp: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: cmd/atlas/go.mod | |
- name: Install stringer | |
run: go install golang.org/x/tools/cmd/stringer@latest | |
- name: run "go generate ./..." | |
run: go generate ./... | |
- name: go generate cmd/atlas | |
working-directory: cmd/atlas | |
run: go generate ./... | |
- name: Verify generated files are checked-in properly | |
run: | | |
status=$(git status --porcelain | grep -v "go.\(sum\|mod\)" | cat) | |
if [ -n "$status" ]; then | |
echo "you need to run 'go generate ./...' and commit the changes" | |
echo "$status" | |
exit 1 | |
fi | |
unit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ "1.22" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Run sql tests | |
run: go test -race ./... | |
working-directory: sql | |
- name: Run schemahcl tests | |
run: go test -race ./... | |
working-directory: schemahcl | |
cli: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: cmd/atlas/go.mod | |
- name: Run cli tests | |
run: go test -race ./... | |
working-directory: cmd/atlas | |
integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: cmd/atlas/go.mod | |
- name: Run integration tests for HCL | |
working-directory: internal/integration/hclsqlspec | |
run: go test -race -count=2 -v ./... | |
dialect-integration: | |
needs: [lint, generate-cmp, unit, cli, integration] | |
uses: ./.github/workflows/ci-dialect_oss.yaml | |
secrets: inherit |