|
1 | 1 | # ============================================================================= |
2 | 2 | # Weekly Module Update |
3 | 3 | # ============================================================================= |
4 | | -# This workflow runs monthly to update and test the latest `go.mod` version. |
| 4 | +# This workflow runs monthly to update and test the latest `go.mod` version and |
| 5 | +# `go install` (or `go get -u`) functionality. |
5 | 6 | # |
6 | 7 | # If all the tests succeeds to run in all Go versions, it will create a new PR |
7 | 8 | # of the `go.mod` and `go.sum`. |
@@ -37,11 +38,16 @@ jobs: |
37 | 38 | - name: Update go.mod and run tests |
38 | 39 | run: | |
39 | 40 | set -eu |
40 | | - docker-compose --file ./.github/docker-compose.yml up tidy && \ |
41 | | - docker-compose --file ./.github/docker-compose.yml up v1_15 && \ |
42 | | - docker-compose --file ./.github/docker-compose.yml up v1_16 && \ |
43 | | - docker-compose --file ./.github/docker-compose.yml up v1_17 && \ |
| 41 | + : # Update go.mod and go.sum |
| 42 | + docker-compose --file ./.github/docker-compose.yml up tidy |
| 43 | + : # Check mod version compatibility |
| 44 | + docker-compose --file ./.github/docker-compose.yml up v1_15 |
| 45 | + docker-compose --file ./.github/docker-compose.yml up v1_16 |
| 46 | + docker-compose --file ./.github/docker-compose.yml up v1_17 |
44 | 47 | docker-compose --file ./.github/docker-compose.yml up latest |
| 48 | + : # Check go install functionality |
| 49 | + docker-compose --file ./.github/docker-compose.yml up gogetu |
| 50 | + docker-compose --file ./.github/docker-compose.yml up gointall |
45 | 51 |
|
46 | 52 | - name: Create Pull Request on Change |
47 | 53 | uses: peter-evans/create-pull-request@v3 |
|
0 commit comments