Skip to content

Commit

Permalink
chore: exclude compose in Go 1.19.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Aug 3, 2023
1 parent 91f5f6e commit 7f14e71
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name: Module pipeline
on:
workflow_call:
inputs:
go-version:
required: true
type: string
description: "The version of Go to use for the test."
platform:
required: true
type: string
description: "The platform to run the test on."
module-directory:
required: true
type: string
Expand All @@ -15,18 +23,14 @@ on:

jobs:
test-module:
strategy:
matrix:
go-version: [1.19.x, 1.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
runs-on: ${{ inputs.platform }}
env:
TESTCONTAINERS_RYUK_DISABLED: "false"
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ inputs.go-version }}
id: go

- name: Check out code into the Go module directory
Expand All @@ -48,7 +52,7 @@ jobs:
# many (maybe, all?) images used can only be build on Linux, they don't have Windows in their manifest, and
# we can't put Windows Server in "Linux Mode" in Github actions
# another, host mode is only available on Linux, and we have tests around that, do we skip them?
if: ${{ matrix.platform == 'ubuntu-latest' }}
if: ${{ inputs.platform == 'ubuntu-latest' }}
working-directory: ./${{ inputs.module-directory }}/${{ inputs.module-name }}
run: |
go install gotest.tools/gotestsum@latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ jobs:
needs: test
strategy:
matrix:
go-version: [1.19.x, 1.x]
platform: [ubuntu-latest, macos-latest]
module: [compose, couchbase, k3s, localstack, mysql, neo4j, postgres, pulsar, redis, redpanda, vault]
exclude:
- module: compose
go-version: 1.19.x
uses: ./.github/workflows/ci-module.yml
with:
module-directory: "modules"
Expand All @@ -122,6 +127,8 @@ jobs:
needs: test-modules
strategy:
matrix:
go-version: [1.19.x, 1.x]
platform: [ubuntu-latest, macos-latest]
module: [bigtable, cockroachdb, consul, datastore, firestore, mongodb, nats, nginx, pubsub, spanner, toxiproxy]
uses: ./.github/workflows/ci-module.yml
with:
Expand Down

0 comments on commit 7f14e71

Please sign in to comment.