From c7d072219504bf88b69fa955922662a9ef4a467d Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 13 Nov 2020 16:13:01 +0100 Subject: [PATCH] Update Go to 1.15 Signed-off-by: Chris --- .github/workflows/build.yml | 13 +++++++++---- .github/workflows/lint.yml | 13 +++++++++---- .github/workflows/release.yml | 15 +++++++++++---- .github/workflows/test.yml | 15 +++++++++++---- .goreleaser.yml | 1 + go.mod | 2 +- 6 files changed, 42 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1173b9d..5b279d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,18 +10,23 @@ on: pull_request: types: [opened, reopened] +env: + GO_VERSION: "^1.15.2" + jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta + - uses: actions/setup-go@v2 with: - go-version: '^1.14.1' + go-version: ${{ env.GO_VERSION }} - uses: actions/cache@v2 with: - path: /home/runner/go/pkg/mod - key: go-mod + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - uses: goreleaser/goreleaser-action@v1 with: args: release --snapshot --skip-sign diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 35b4f65..fb001de 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,17 +10,22 @@ on: pull_request: types: [opened, reopened] +env: + GO_VERSION: "^1.15.2" + jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta + - uses: actions/setup-go@v2 with: - go-version: '^1.14.1' + go-version: ${{ env.GO_VERSION }} - uses: actions/cache@v2 with: - path: /home/runner/go/pkg/mod - key: go-mod + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Run linters run: make lint diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 445b08a..52fb218 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,18 +6,25 @@ on: tags: - "*" +env: + GO_VERSION: "^1.15.2" + jobs: goreleaser: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta with: - go-version: '^1.14.1' + fetch-depth: 0 + - uses: actions/setup-go@v2 + with: + go-version: ${{ env.GO_VERSION }} - uses: actions/cache@v2 with: - path: /home/runner/go/pkg/mod - key: go-mod + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Login to Docker hub run: docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} - uses: goreleaser/goreleaser-action@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4fac76..f1b9924 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,17 +10,24 @@ on: pull_request: types: [opened, reopened] +env: + GO_VERSION: "^1.15.2" + jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta with: - go-version: '^1.14.1' + fetch-depth: 0 # some unit tests test the Git integration with our own git history + - uses: actions/setup-go@v2 + with: + go-version: ${{ env.GO_VERSION }} - uses: actions/cache@v2 with: - path: /home/runner/go/pkg/mod - key: go-mod + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Run test suite run: make test diff --git a/.goreleaser.yml b/.goreleaser.yml index dbfe5a8..4b5b6d2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -51,6 +51,7 @@ changelog: - '^Docs:' - '^Test:' - '^Refactor:' + - '^Merge pull request' release: github: diff --git a/go.mod b/go.mod index e2a28c2..88ed518 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/appuio/seiso -go 1.14 +go 1.15 require ( github.com/etdub/goparsetime v0.0.0-20160315173935-ea17b0ac3318 // indirect