Skip to content

Commit

Permalink
[BEAM-13740] Correctly install go before running tests (#16673)
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed Jan 31, 2022
1 parent c60c3e7 commit 525920f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/java_tests.yml
Expand Up @@ -38,16 +38,6 @@ on:


jobs:
# Commenting out setup-go as it is misconfigured, and blocking java builds
# See BEAM-13740 and BEAM-12830
# setup-go:
# runs-on: [ubuntu-latest, macos-latest, windows-latest]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: '1.16.12'

check_gcp_variables:
timeout-minutes: 5
name: "Check GCP variables set"
Expand Down Expand Up @@ -117,7 +107,6 @@ jobs:
path: runners/core-java/build/reports/tests/test

java_wordcount_direct_runner:
# needs: setup-go
name: 'Java Wordcount Direct Runner'
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -130,6 +119,10 @@ jobs:
with:
persist-credentials: false
submodules: recursive
- name: Install go
uses: actions/setup-go@v2
with:
go-version: '1.16.12'
- name: Run WordCount Unix
uses: ./.github/actions/gradle-command-action
with:
Expand All @@ -147,7 +140,6 @@ jobs:
name: 'Java Wordcount Dataflow'
needs:
- check_gcp_variables
# - setup-go
runs-on: ${{ matrix.os }}
if: |
needs.check_gcp_variables.outputs.gcp-variables-set == 'true' && (
Expand All @@ -164,6 +156,10 @@ jobs:
with:
persist-credentials: false
submodules: recursive
- name: Install go
uses: actions/setup-go@v2
with:
go-version: '1.16.12'
- name: Authenticate on GCP
uses: google-github-actions/setup-gcloud@master
with:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/python_tests.yml
Expand Up @@ -38,14 +38,6 @@ on:

jobs:

setup-go:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16.12'

check_gcp_variables:
timeout-minutes: 5
name: "Check GCP variables"
Expand Down Expand Up @@ -176,7 +168,6 @@ jobs:
name: 'Python Wordcount Dataflow'
needs:
- build_python_sdk_source
- setup-go
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -195,6 +186,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install go
uses: actions/setup-go@v2
with:
go-version: '1.16.12'
- name: Download source from artifacts
uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit 525920f

Please sign in to comment.