Require Go 1.21 (#9244)

This commit is contained in:
andig 2023-08-17 21:41:44 +02:00 • committed by GitHub
parent 0854849243
commit e14fdf6822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 116 additions and 127 deletions

View file

@ -1,5 +1,8 @@
name: Default
env:
GO_VERSION: ^1.21
on:
push:
branches:
@ -18,7 +21,7 @@ jobs:
# - uses: actions/setup-go@v4
- uses: erezrokah/setup-go@feat/add_cache_prefix
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
cache-key-prefix: clean-cache-
id: go
@ -46,7 +49,7 @@ jobs:
- uses: erezrokah/setup-go@feat/add_cache_prefix
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
cache-key-prefix: build-cache-
id: go
@ -70,7 +73,7 @@ jobs:
# - uses: actions/setup-go@v4
- uses: erezrokah/setup-go@feat/add_cache_prefix
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
cache-key-prefix: test-cache-
id: go
@ -86,7 +89,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
cache: false # avoid cache thrashing
id: go
@ -142,7 +145,7 @@ jobs:
- uses: erezrokah/setup-go@feat/add_cache_prefix
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
cache-key-prefix: integration-cache-
id: go

View file

@ -1,5 +1,8 @@
name: Deploy updated templates
env:
GO_VERSION: ^1.21
on:
push:
branches: [master]
@ -16,7 +19,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
id: go
- name: Build docs

View file

@ -1,5 +1,8 @@
name: Nightly Build
env:
GO_VERSION: ^1.21
on:
schedule: # runs on the default branch: master
- cron: "0 2 * * *" # run at 2 AM UTC
@ -81,7 +84,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
id: go
- name: Install Cloudsmith CLI

View file

@ -1,5 +1,8 @@
name: Release
env:
GO_VERSION: ^1.21
on:
push:
tags:
@ -7,7 +10,7 @@ on:
jobs:
call-build-workflow:
if: "startsWith(github.ref, 'refs/tags')"
if: startsWith(github.ref, 'refs/tags')
uses: evcc-io/evcc/.github/workflows/default.yml@master
docker:
@ -60,7 +63,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
id: go
- name: Install Cloudsmith CLI

View file

@ -1,5 +1,8 @@
name: Deploy data to website
env:
GO_VERSION: ^1.21
on:
push:
branches: [master]
@ -16,7 +19,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ^1.20
go-version: ${{ env.GO_VERSION }}
id: go
- name: Build docs