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