From 44b2734e9efcb0ddf1311c88f036bdab306cdefb Mon Sep 17 00:00:00 2001 From: Andrew Gillis Date: Thu, 22 Feb 2024 21:03:48 -0800 Subject: [PATCH] Update actions and go version (#24) --- .github/workflows/go.yml | 12 ++++++------ .github/workflows/golangci-lint.yaml | 4 ++-- go.mod | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index deff3fe..126868b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,21 +2,21 @@ name: Go on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: '1.22' - name: Vet run: go vet ./... @@ -28,6 +28,6 @@ jobs: run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: files: coverage.txt diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 5edb155..1b266e8 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -15,7 +15,7 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v4 diff --git a/go.mod b/go.mod index b73f845..37d500d 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/gammazero/radixtree -go 1.18 +go 1.20