Go Extra #267
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
--- | |
# Integration tests for extra configuration. | |
name: Go Extra | |
on: | |
schedule: | |
- cron: "12 1 * * *" # after Go workflow to reuse "Setup Go" cache | |
env: | |
GOPATH: /home/runner/go | |
GOCACHE: /home/runner/go/cache | |
GOLANGCI_LINT_CACHE: /home/runner/go/cache/lint | |
GOMODCACHE: /home/runner/go/mod | |
GOPROXY: https://proxy.golang.org | |
GOTOOLCHAIN: local | |
jobs: | |
integration: | |
# job name must be unique; make it unique and nice | |
name: > | |
${{ matrix.task }} ${{ matrix.postgres_dockerfile }} ${{ matrix.shard_index }}/${{ matrix.shard_total }} | |
(pushdown=${{ matrix.disable_pushdown }}) | |
# To avoid conflict with go.yml. | |
concurrency: | |
group: ${{ github.workflow }}-integration-${{ matrix.task }}-${{ matrix.postgres_dockerfile }}-${{ matrix.shard_index }}-${{ matrix.disable_pushdown }}-${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
strategy: | |
fail-fast: false | |
matrix: | |
task: [postgresql, sqlite, mysql] | |
shard_index: [1, 2, 3] | |
shard_total: [3] | |
disable_pushdown: [false, true] | |
include: | |
- task: postgresql | |
shard_index: 1 | |
shard_total: 3 | |
disable_pushdown: false | |
postgres_dockerfile: citus | |
- task: postgresql | |
shard_index: 2 | |
shard_total: 3 | |
disable_pushdown: false | |
postgres_dockerfile: citus | |
- task: postgresql | |
shard_index: 3 | |
shard_total: 3 | |
disable_pushdown: false | |
postgres_dockerfile: citus | |
# Do not submit to coveralls because it can't handle parallel workflows: | |
# https://github.com/lemurheavy/coveralls-public/issues/1636#issuecomment-1529460515 | |
uses: ./.github/workflows/_integration.yml | |
with: | |
task: ${{ matrix.task }} | |
shard_index: ${{ matrix.shard_index }} | |
shard_total: ${{ matrix.shard_total }} | |
disable_pushdown: ${{ matrix.disable_pushdown }} | |
postgres_dockerfile: ${{ matrix.postgres_dockerfile }} | |
coveralls: false |