From 310bbac6be5b41bab8ab841f14d7e74cebaac01f Mon Sep 17 00:00:00 2001 From: Peter Helewski Date: Tue, 28 Jan 2020 11:52:17 -0500 Subject: [PATCH] Upgrade go version and use github provided virtual environment to run workflow stages (#61) * upgrade go version and use github provided virtual environment to run workflow stages * updating go version on dev container --- .devcontainer/Dockerfile | 2 +- .github/workflows/build.yml | 24 ++++++++++++++++++------ .github/workflows/build_and_deploy.yml | 2 +- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 3c10bb0..9c755a3 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,7 +3,7 @@ # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. #------------------------------------------------------------------------------------------------------------- -FROM golang:1.12 +FROM golang:1.13 ENV GO111MODULE=on # Avoid warnings by switching to noninteractive diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0aadfe..7380541 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,10 +10,22 @@ on: jobs: build: runs-on: ubuntu-latest - container: golang:1.12 steps: - - uses: actions/checkout@master - - name: dependencies - run: go mod download - - name: make test - run: make test \ No newline at end of file + - + name: checkout + uses: actions/checkout@master + - + name: setup go + uses: actions/setup-go@v1 + with: + go-version: '1.13' + - + name: dependencies + run: | + go mod download + - + name: make test + run: | + export GOPATH=/home/runner/go + export PATH="$PATH:$GOPATH/bin" + make test diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 461df5a..54ac99f 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -19,7 +19,7 @@ jobs: name: setup go uses: actions/setup-go@v1 with: - go-version: '1.12' + go-version: '1.13' - name: dependencies run: |