Skip to content

Commit

Permalink
repo: Upgrade git action golang version
Browse files Browse the repository at this point in the history
1.15.x causes `build constraints exclude all Go files in...` error
during build when the azure client is upgraded to azure-sdk-for-go

 `-mod=mod` was needed due to golang/go#44129
  • Loading branch information
praminda committed Jan 20, 2022
1 parent a08dacc commit 5ba8edc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: '1.15.x'
go-version: '1.16.x'
- name: Cache M2 Repo
uses: actions/cache@v1
with:
Expand All @@ -37,7 +37,7 @@ jobs:
run: echo ${{ steps.extract-project-version.outputs.version }}
- name: Build with Maven
run: |
#export PATH="${HOME}/go/bin:${PATH}"
export GOFLAGS=-mod=mod
mvn clean install -PRelease -s .maven/settings.xml \
-pl '!:integration' -pl '!:mock-backend-server' -pl '!:test-integration'
- name: Run integration tests
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nightly-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: '1.15.x'
go-version: '1.16.x'
- name: Cache M2 Repo
uses: actions/cache@v1
with:
Expand All @@ -68,6 +68,7 @@ jobs:
- name: Build with Maven
run: |
export PATH="${HOME}/go/bin:${PATH}"
export GOFLAGS=-mod=mod
mvn clean install -PRelease -s .maven/settings.xml \
-pl '!:integration' -pl '!:mock-backend-server' -pl '!:test-integration'
- name: Build multi platform Ubuntu images
Expand Down

0 comments on commit 5ba8edc

Please sign in to comment.