Skip to content

Commit

Permalink
Upgrade go version and use github provided virtual environment to run…
Browse files Browse the repository at this point in the history
… workflow stages (#61)

* upgrade go version and use github provided virtual environment to run workflow stages

* updating go version on dev container
  • Loading branch information
Peter Helewski authored and Matt Newell committed Jan 28, 2020
1 parent 1dc00ec commit 310bbac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
-
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
2 changes: 1 addition & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 310bbac

Please sign in to comment.