aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/benchmark.yml2
-rw-r--r--.github/workflows/go.yml9
-rw-r--r--.github/workflows/release.yml6
-rw-r--r--cache/repo_cache_test.go7
-rw-r--r--go.mod2
5 files changed, 16 insertions, 10 deletions
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index e5fcd1f1..16fb5d7e 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
- go-version: 1.18.x
+ go-version: 1.19.4
- uses: actions/checkout@v3
# Run benchmark with `go test -bench` and stores the output to a file
- name: Run benchmark
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 90400553..d0f2585d 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
- go-version: [1.18.x]
+ go-version: [1.19.4]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
@@ -20,7 +20,7 @@ jobs:
steps:
- name: Set up Go ${{ matrix.node-version }}
- uses: actions/setup-go@v2
+ uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
@@ -44,13 +44,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@v3
with:
- go-version: 1.18.x
+ go-version: 1.19.4
- name: Checkout code
uses: actions/checkout@v2
- name: Check Code Formatting
run: find . -name "*.go" | while read line; do [ -z "$(gofmt -d "$line" | head)" ] || exit 1; done
-
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a245f052..80751500 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -12,9 +12,9 @@ jobs:
steps:
- name: Set up Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@v3
with:
- go-version: 1.18.x
+ go-version: 1.19.4
- name: Check out code
uses: actions/checkout@v2
@@ -38,4 +38,4 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
- files: dist/* \ No newline at end of file
+ files: dist/*
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go
index 042498df..39814733 100644
--- a/cache/repo_cache_test.go
+++ b/cache/repo_cache_test.go
@@ -149,6 +149,13 @@ func TestCache(t *testing.T) {
require.NoError(t, err)
_, err = cache.Bugs().ResolvePrefix(bug1.Id().String()[:10])
require.NoError(t, err)
+
+ // Close
+ require.NoError(t, cache.Close())
+ require.Empty(t, cache.bugs.cached)
+ require.Empty(t, cache.bugs.excerpts)
+ require.Empty(t, cache.identities.cached)
+ require.Empty(t, cache.identities.excerpts)
}
func TestCachePushPull(t *testing.T) {
diff --git a/go.mod b/go.mod
index 7d07bc5a..50a72e93 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/MichaelMure/git-bug
-go 1.18
+go 1.19
require (
github.com/99designs/gqlgen v0.17.20