diff --git a/.github/workflows/ci-dgraph-load-tests.yml b/.github/workflows/ci-dgraph-load-tests.yml index 9bb0587de9f..11842f25dc6 100644 --- a/.github/workflows/ci-dgraph-load-tests.yml +++ b/.github/workflows/ci-dgraph-load-tests.yml @@ -16,13 +16,18 @@ on: jobs: dgraph-load-tests: if: github.event.pull_request.draft == false - runs-on: self-hosted + runs-on: [self-hosted, x64] steps: - uses: actions/checkout@v3 + - name: Get Go Version + run: | + #!/bin/bash + GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) + echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: ${{ env.GOVERSION }} - name: Set up Node uses: actions/setup-node@v3 with: diff --git a/.github/workflows/ci-dgraph-tests.yml b/.github/workflows/ci-dgraph-tests.yml index 8496980fbae..efdbcd09418 100644 --- a/.github/workflows/ci-dgraph-tests.yml +++ b/.github/workflows/ci-dgraph-tests.yml @@ -16,13 +16,18 @@ on: jobs: dgraph-tests: if: github.event.pull_request.draft == false - runs-on: self-hosted + runs-on: [self-hosted, x64] steps: - uses: actions/checkout@v3 + - name: Get Go Version + run: | + #!/bin/bash + GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) + echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: ${{ env.GOVERSION }} - name: Set up Node uses: actions/setup-node@v3 with: diff --git a/.github/workflows/ci-golang-lint.yml b/.github/workflows/ci-golang-lint.yml index 829d9ad65c7..1894a51bff7 100644 --- a/.github/workflows/ci-golang-lint.yml +++ b/.github/workflows/ci-golang-lint.yml @@ -19,15 +19,23 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Get Go Version + run: | + #!/bin/bash + GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) + echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: ${{ env.GOVERSION }} - name: golang-lint env: # prevent OOM GOGC: 10 - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.36 + version: latest only-new-issues: true args: --timeout=10m - skip-go-installation: true