Skip to content

Commit

Permalink
use go.mod file in Dgraph repo for go version
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 committed Nov 28, 2024
1 parent c0dea24 commit a36ace8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/cd-dgraph-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,10 @@ jobs:
path: dgraph
repository: dgraph-io/dgraph
ref: main
- name: Get Go Version
run: |
#!/bin/bash
cd dgraph
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build dgraph binary
run: cd dgraph && make docker-image # also builds dgraph binary
- name: Move dgraph binary to gopath
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/ci-dgraph-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,10 @@ jobs:
path: dgraph
repository: dgraph-io/dgraph
ref: main
- name: Get Go Version
run: |
#!/bin/bash
cd dgraph
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVERSION }}
cache: false
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build dgraph binary
run: cd dgraph && make docker-image # also builds dgraph binary
- name: Move dgraph binary to gopath
Expand Down

0 comments on commit a36ace8

Please sign in to comment.