diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b5cbfca..5da8be5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,16 +14,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Unshallow run: git fetch --prune --unshallow - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: GoReportCard diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 2cf1958..b738a68 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -15,7 +15,7 @@ jobs: with: fetch-depth: '0' - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 - name: Bump version and push tag uses: anothrNick/github-tag-action@1.61.0 id: tagging diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e831fcc..c742303 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,16 +10,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test run: make test golangci-lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 diff --git a/geofence.go b/geofence.go index 2c61b92..f4de2b3 100644 --- a/geofence.go +++ b/geofence.go @@ -13,8 +13,6 @@ import ( const ( ipBaseBaseURL = "https://api.ipbase.com/v2" - // For in-memory cache - deleteExpiredCacheItemsInternal = 10 * time.Minute ) // Config holds the user configuration to setup a new geofence