diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index e5fcd1f119572ebef66da38d3a584082306ef231..16fb5d7e562908f6b3cbee10c481bef6153abc17 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 904005539941f42ac207c5532f8bf1fbe5f6db48..d0f2585d0dbbd97a16727ec795032be82a6163cb 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 a245f05262d4cfff0f1ceca9e86a2bf3c7d20169..80751500c71df3c7e58ffe8b44e8ebefb74eb447 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 042498df4595e8e83deff98624e3b5e404e2a4f8..39814733291a0888bcc9e5b6b88214414d8cb4ef 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 7d07bc5a8de14f3f4f79576bcb4a1b42ff56ba3c..50a72e93c9b45178735bed9046c6a3df4c18bf1b 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