-
-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move compose code to a separate module (#650)
* chore: expose log docker server in the logger file * chore: move compose to its own module This will allow regular users to consume the replace directive, simplifying the adoption of the library * chore: add pipeline for compose module * docs: update install instructions for compose * chore: run go mod tidy for all examples * fix: rename job in workflow * chore: include gotestsum in compose module dependencies * chore: run go mod tidy in main module * chore: rollback stop options * chore: bump compose dependencies * chore: only replace docker dependency in main module * docs: update install instructions * chore: simplify dependencies in examples templates * chore: update examples * fix: use non-deprecated type * fix: copy missing test resource * chore: go mod tidy examples * chorerun go mod tidy in examples
- Loading branch information
1 parent
18a119b
commit 10c899c
Showing
52 changed files
with
1,638 additions
and
11,469 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Compose module pipeline | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test-compose: | ||
strategy: | ||
matrix: | ||
go-version: [1.18.x, 1.x] | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: modVerify | ||
working-directory: ./modules/compose | ||
run: go mod verify | ||
|
||
- name: modTidy | ||
working-directory: ./modules/compose | ||
run: go mod tidy | ||
|
||
- name: gotestsum | ||
working-directory: ./modules/compose | ||
run: | | ||
go run gotest.tools/gotestsum \ | ||
--format short-verbose \ | ||
--rerun-fails=5 \ | ||
--packages="./..." \ | ||
--junitfile TEST-compose.xml | ||
- name: Run checker | ||
run: | | ||
./scripts/check_environment.sh | ||
- name: Test Summary | ||
uses: test-summary/action@4ee9ece4bca777a38f05c8fc578ac2007fe266f7 | ||
with: | ||
paths: "**/TEST-compose*.xml" | ||
if: always() |
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 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 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 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
Oops, something went wrong.