From f755a083fe6576666bb2d5cf87ab54a8424d4b49 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Wed, 15 Nov 2023 11:38:08 -0600 Subject: [PATCH] Update build (#37) * Update to Go 1.21. * Enable dependabot for github actions. * Update action versions. Signed-off-by: SuperQ --- .github/dependabot.yml | 4 ++++ .github/workflows/main.yml | 22 ++++++++++------------ go.mod | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 202ae23..c0b195d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "monthly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c73efee..588d9fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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/golangci-lint-action@v3.4.0 @@ -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: diff --git a/go.mod b/go.mod index ebef64b..653a53c 100644 --- a/go.mod +++ b/go.mod @@ -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