modulegen: use cobra instead of native golang flag #4006
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
# This file is autogenerated by the 'modulegen' tool. | |
# Please update the 'ci.yml' template instead. | |
name: Main pipeline | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.vscode/**' | |
- 'mkdocs.yml' | |
- 'docs/**' | |
- 'README.md' | |
pull_request: | |
paths-ignore: | |
- '.vscode/**' | |
- 'mkdocs.yml' | |
- 'docs/**' | |
- 'README.md' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.x] | |
platform: [ubuntu-latest, macos-latest] | |
uses: ./.github/workflows/ci-test-go.yml | |
with: | |
go-version: ${{ matrix.go-version }} | |
platform: ${{ matrix.platform }} | |
project-directory: "." | |
rootless-docker: false | |
run-tests: ${{ matrix.platform == 'ubuntu-latest' }} | |
ryuk-disabled: false | |
# The job below is a copy of the job above, but with ryuk disabled. | |
# It's executed in a secondary stage to avoid concurrency issues. | |
test-reaper-off: | |
name: "Test with reaper off" | |
needs: test | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.x] | |
uses: ./.github/workflows/ci-test-go.yml | |
with: | |
go-version: ${{ matrix.go-version }} | |
platform: "ubuntu-latest" | |
project-directory: "." | |
rootless-docker: false | |
run-tests: true | |
ryuk-disabled: true | |
# The job below is a copy of the job above, but with Docker rootless. | |
# It's executed in a secondary stage to avoid concurrency issues. | |
test-rootless-docker: | |
name: "Test with Rootless Docker" | |
needs: test | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.x] | |
platform: [ubuntu-latest] | |
uses: ./.github/workflows/ci-test-go.yml | |
with: | |
go-version: ${{ matrix.go-version }} | |
platform: "ubuntu-latest" | |
project-directory: "." | |
rootless-docker: true | |
run-tests: true | |
ryuk-disabled: false | |
test-module-generator: | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.x] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
uses: ./.github/workflows/ci-test-go.yml | |
with: | |
go-version: ${{ matrix.go-version }} | |
platform: ${{ matrix.platform }} | |
project-directory: "modulegen" | |
rootless-docker: false | |
run-tests: true | |
ryuk-disabled: false | |
test-modules: | |
needs: test | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.x] | |
platform: [ubuntu-latest, macos-latest] | |
module: [artemis, clickhouse, compose, couchbase, k3s, localstack, mariadb, mongodb, mysql, neo4j, postgres, pulsar, redis, redpanda, vault] | |
uses: ./.github/workflows/ci-test-go.yml | |
with: | |
go-version: ${{ matrix.go-version }} | |
platform: ${{ matrix.platform }} | |
project-directory: modules/${{ matrix.module }} | |
rootless-docker: false | |
run-tests: ${{ matrix.platform == 'ubuntu-latest' }} | |
ryuk-disabled: false | |
test-examples: | |
needs: test-modules | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.x] | |
platform: [ubuntu-latest, macos-latest] | |
module: [bigtable, cockroachdb, consul, datastore, firestore, nats, nginx, pubsub, spanner, toxiproxy] | |
uses: ./.github/workflows/ci-test-go.yml | |
with: | |
go-version: ${{ matrix.go-version }} | |
platform: ${{ matrix.platform }} | |
project-directory: examples/${{ matrix.module }} | |
rootless-docker: false | |
run-tests: ${{ matrix.platform == 'ubuntu-latest' }} | |
ryuk-disabled: false |