Skip to content

Commit

Permalink
Update build (#37)
Browse files Browse the repository at this point in the history
* Update to Go 1.21.
* Enable dependabot for github actions.
* Update action versions.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored Nov 15, 2023
1 parent 0e2501e commit f755a08
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ updates:
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
22 changes: 10 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@ on:
- master
- main
pull_request:
branches:
- master
- main

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go_version: ["1.20.x", "1.21.x"]

name: Build and Test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ matrix.go_version }}
check-latest: true
- run: make -C stuff style
- run: make -C stuff test
Expand All @@ -40,9 +38,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: '1.21.x'
check-latest: true
- uses: golangci/[email protected]

Expand All @@ -51,10 +49,10 @@ jobs:
needs: [build-and-test]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21.x'
check-latest: true
- uses: goreleaser/goreleaser-action@v4
with:
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/hzeller/stuff-org

go 1.19
go 1.20

require (
github.com/mattn/go-sqlite3 v1.14.17
Expand Down

0 comments on commit f755a08

Please sign in to comment.