Skip to content

Commit

Permalink
Improves gh actions and increases go version to 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-fritz committed Jul 2, 2023
1 parent d6da0cb commit 01db65c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,26 @@ name: Go build

on:
push:
branches: [ master ]
paths:
- 'cmd/**'
- 'pkg/**'
- 'version/**'
- 'main.go'
- 'go.mod'
- 'go.sum'
pull_request:
branches: [ master ]
paths:
- 'cmd/**'
- 'pkg/**'
- 'version/**'
- 'main.go'
- 'go.mod'
- 'go.sum'

jobs:
permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
Expand All @@ -17,7 +31,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"

- name: Build Dependencies
run: make buildDeps
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- '*'

permissions:
contents: read
packages: write

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -16,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: "1.20"
- name: Login to Quay.io
uses: docker/login-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

module github.com/chr-fritz/knx-exporter

go 1.19
go 1.20

require (
github.com/coreos/go-systemd/v22 v22.5.0
Expand Down

0 comments on commit 01db65c

Please sign in to comment.