Skip to content

Rewrite the document loader to address the race condition when called concurrently. Add the ability to store preloaded documents in the memory cache. #318

Rewrite the document loader to address the race condition when called concurrently. Add the ability to store preloaded documents in the memory cache.

Rewrite the document loader to address the race condition when called concurrently. Add the ability to store preloaded documents in the memory cache. #318

Workflow file for this run

name: test
on:
push:
branches:
- main
- develop
pull_request:
jobs:
test:
strategy:
matrix:
containers:
- 1.18.10-bullseye
- 1.19.13-bullseye
- 1.20.9-bullseye
- 1.21.2-bullseye
runs-on: ubuntu-latest
container: golang:${{ matrix.containers }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
/go/pkg/mod
key: ${{ runner.os }}-${{ matrix.containers }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.containers }}-go-
- name: Unit Tests
env:
IPFS_URL: ${{secrets.IPFS_URL }}
run: go test -race -timeout=180s ./...