Skip to content

Commit

Permalink
Update Go to 1.15
Browse files Browse the repository at this point in the history
Signed-off-by: Chris <github.account@chrigel.net>
  • Loading branch information
ccremer committed Nov 17, 2020
1 parent fd92400 commit c7d0722
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 17 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 9 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ changelog:
- '^Docs:'
- '^Test:'
- '^Refactor:'
- '^Merge pull request'

release:
github:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c7d0722

Please sign in to comment.