Skip to content

Commit

Permalink
Merge branch 'main' into fix-fail-fast-in-log-strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Aug 2, 2023
2 parents a8f07c2 + 659a096 commit 9102ab6
Show file tree
Hide file tree
Showing 111 changed files with 570 additions and 2,250 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bigtable-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/bigtable
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/bigtable
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-reaper-off.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: gotestsum
- name: go test
# only run tests on linux, there are a number of things that won't allow the tests to run on anything else
# 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?
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-rootless-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ jobs:
GOOS: linux
run: go build

- name: gotestsum
- name: go test
# only run tests on linux, there are a number of things that won't allow the tests to run on anything else
# 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' }}
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ jobs:
GOOS: linux
run: go build

- name: gotestsum
- name: go test
# only run tests on linux, there are a number of things that won't allow the tests to run on anything else
# 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' }}
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run module generator tests
if: ${{ matrix.platform == 'ubuntu-latest' }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/cockroachdb-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/cockroachdb
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/cockroachdb
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/consul-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/consul
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/consul
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/datastore-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/datastore
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/datastore
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/firestore-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/firestore
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/firestore
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/module-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
test-compose:
strategy:
matrix:
go-version: [1.19.x, 1.x]
# TODO: Include back 1.20 when we have a new release
go-version: [1.x]
runs-on: "ubuntu-latest"
steps:

Expand All @@ -37,14 +38,11 @@ jobs:
working-directory: ./modules/compose
run: go mod tidy

- name: gotestsum
- name: go test
working-directory: ./modules/compose
run: |
go run gotest.tools/gotestsum \
--format short-verbose \
--rerun-fails=5 \
--packages="./..." \
--junitfile TEST-compose.xml
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-couchbase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/couchbase
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/couchbase
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/k3s
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/k3s
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-localstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/localstack
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/localstack
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/mysql
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/mysql
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-neo4j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/neo4j
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/neo4j
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/postgres
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/postgres
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-pulsar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/pulsar
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/pulsar
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/redis
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/redis
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-redpanda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/redpanda
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/redpanda
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/module-vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./modules/vault
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./modules/vault
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/mongodb-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/mongodb
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/mongodb
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nats-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/nats
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/nats
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nginx-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/nginx
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/nginx
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pubsub-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/pubsub
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/pubsub
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/spanner-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/spanner
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/spanner
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/toxiproxy-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ jobs:
working-directory: ./examples/toxiproxy
run: make tools-tidy

- name: gotestsum
- name: go test
working-directory: ./examples/toxiproxy
run: make test-unit
run: |
go install gotest.tools/gotestsum@latest
make test-unit
- name: Run checker
run: |
Expand Down
2 changes: 1 addition & 1 deletion commons-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies-scan:
.PHONY: test-%
test-%:
@echo "Running $* tests..."
go run gotest.tools/gotestsum \
gotestsum \
--format short-verbose \
--rerun-fails=5 \
--packages="./..." \
Expand Down
Loading

0 comments on commit 9102ab6

Please sign in to comment.