From f07e3fd77ff33b8da6d3c872d5d2b520eb8e6414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Werner?= Date: Mon, 12 Jun 2023 08:09:39 +0200 Subject: [PATCH] repair test workflows --- .github/workflows/test-arangodb.yml | 20 ++--------------- .github/workflows/test-azureblob.yml | 20 ++--------------- .github/workflows/test-badger.yml | 21 ++---------------- .github/workflows/test-bbolt.yml | 20 ++--------------- .github/workflows/test-dynamodb.yml | 20 ++--------------- .github/workflows/test-memcache.yml | 20 ++--------------- .github/workflows/test-mongodb.yml | 20 ++--------------- .github/workflows/test-mssql.yml | 20 ++--------------- .github/workflows/test-mysql.yml | 20 ++--------------- .github/workflows/test-pebble.yml | 27 +++++------------------ .github/workflows/test-postgres.yml | 20 ++--------------- .github/workflows/test-redis.yml | 17 --------------- .github/workflows/test-ristretto.yml | 32 +++++++--------------------- .github/workflows/test-s3.yml | 20 ++--------------- .github/workflows/test-sqlite3.yml | 21 ++---------------- .github/workflows/test.yml | 21 ++---------------- 16 files changed, 39 insertions(+), 300 deletions(-) diff --git a/.github/workflows/test-arangodb.yml b/.github/workflows/test-arangodb.yml index b86cee00..04ab18bb 100644 --- a/.github/workflows/test-arangodb.yml +++ b/.github/workflows/test-arangodb.yml @@ -27,27 +27,11 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./arangodb && go test ./... -v -race diff --git a/.github/workflows/test-azureblob.yml b/.github/workflows/test-azureblob.yml index 565204e1..e52e6724 100644 --- a/.github/workflows/test-azureblob.yml +++ b/.github/workflows/test-azureblob.yml @@ -22,27 +22,11 @@ jobs: - name: Install Azurite run: | docker run -d -p 10000:10000 mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0 --blobPort 10000 + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./azureblob && go test ./... -v -race diff --git a/.github/workflows/test-badger.yml b/.github/workflows/test-badger.yml index f1d249a5..39ebe229 100644 --- a/.github/workflows/test-badger.yml +++ b/.github/workflows/test-badger.yml @@ -19,28 +19,11 @@ jobs: - 1.20.x runs-on: ubuntu-latest steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - - name: Fetch Repository - uses: actions/checkout@v3 - name: Test Badger run: cd ./badger && go test ./... -v -race diff --git a/.github/workflows/test-bbolt.yml b/.github/workflows/test-bbolt.yml index c0aede66..f1b3af6e 100644 --- a/.github/workflows/test-bbolt.yml +++ b/.github/workflows/test-bbolt.yml @@ -19,27 +19,11 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./bbolt && go test ./... -v -race diff --git a/.github/workflows/test-dynamodb.yml b/.github/workflows/test-dynamodb.yml index 1c33912e..8af75713 100644 --- a/.github/workflows/test-dynamodb.yml +++ b/.github/workflows/test-dynamodb.yml @@ -25,27 +25,11 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./dynamodb && go test ./... -v -race diff --git a/.github/workflows/test-memcache.yml b/.github/workflows/test-memcache.yml index abb5b9e0..24187d24 100644 --- a/.github/workflows/test-memcache.yml +++ b/.github/workflows/test-memcache.yml @@ -25,27 +25,11 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./memcache && go test ./... -v -race diff --git a/.github/workflows/test-mongodb.yml b/.github/workflows/test-mongodb.yml index 5253a809..cea6b55d 100644 --- a/.github/workflows/test-mongodb.yml +++ b/.github/workflows/test-mongodb.yml @@ -25,28 +25,12 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./mongodb && go test ./... -v -race diff --git a/.github/workflows/test-mssql.yml b/.github/workflows/test-mssql.yml index 9309cc01..8fc02d9b 100644 --- a/.github/workflows/test-mssql.yml +++ b/.github/workflows/test-mssql.yml @@ -36,28 +36,12 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./mssql && go test ./... -v -race env: diff --git a/.github/workflows/test-mysql.yml b/.github/workflows/test-mysql.yml index 6778b9b8..fb227bed 100644 --- a/.github/workflows/test-mysql.yml +++ b/.github/workflows/test-mysql.yml @@ -33,28 +33,12 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./mysql && go test ./... -v -race env: diff --git a/.github/workflows/test-pebble.yml b/.github/workflows/test-pebble.yml index 5b3962ac..bfdc5c91 100644 --- a/.github/workflows/test-pebble.yml +++ b/.github/workflows/test-pebble.yml @@ -18,28 +18,11 @@ jobs: - 1.20.x runs-on: ubuntu-latest steps: - - name: Install Go + - name: Fetch Repository + uses: actions/checkout@v3 + - name: Install Go uses: actions/setup-go@v4 with: - go-version: "${{ matrix.go-version }}" - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - - name: Fetch Repository - uses: actions/checkout@v3 - - name: Test Pebble + go-version: '${{ matrix.go-version }}' + - name: Test Pebble run: cd ./pebble && go test ./... -v -race diff --git a/.github/workflows/test-postgres.yml b/.github/workflows/test-postgres.yml index 3828836b..e4832915 100644 --- a/.github/workflows/test-postgres.yml +++ b/.github/workflows/test-postgres.yml @@ -30,28 +30,12 @@ jobs: - 1.19.x - 1.20.x steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./postgres && go test ./... -v -race env: diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml index 01ffa35d..07ef3904 100644 --- a/.github/workflows/test-redis.yml +++ b/.github/workflows/test-redis.yml @@ -55,22 +55,5 @@ jobs: with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Run Test run: cd ./redis && go test ./... -v -race diff --git a/.github/workflows/test-ristretto.yml b/.github/workflows/test-ristretto.yml index 7ef864ac..53b60133 100644 --- a/.github/workflows/test-ristretto.yml +++ b/.github/workflows/test-ristretto.yml @@ -19,27 +19,11 @@ jobs: - 1.19.x - 1.20.x steps: - - name: Install Go - uses: actions/setup-go@v4 - with: - go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - - name: Run Test - run: cd ./ristretto && go test ./... -v -race + - name: Fetch Repository + uses: actions/checkout@v3 + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: '${{ matrix.go-version }}' + - name: Run Test + run: cd ./ristretto && go test ./... -v -race diff --git a/.github/workflows/test-s3.yml b/.github/workflows/test-s3.yml index c8cb06a5..6b90ff8e 100644 --- a/.github/workflows/test-s3.yml +++ b/.github/workflows/test-s3.yml @@ -28,27 +28,11 @@ jobs: export AWS_EC2_METADATA_DISABLED=true aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://testbucket + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - name: Fetch Repository - uses: actions/checkout@v3 - name: Run Test run: cd ./s3 && go test ./... -v -race diff --git a/.github/workflows/test-sqlite3.yml b/.github/workflows/test-sqlite3.yml index 6c4df0db..dc9eb22f 100644 --- a/.github/workflows/test-sqlite3.yml +++ b/.github/workflows/test-sqlite3.yml @@ -20,29 +20,12 @@ jobs: - 1.20.x runs-on: ubuntu-latest steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - - name: Fetch Repository - uses: actions/checkout@v3 - name: Test SQLite3 - with -race check if: runner.os != 'Windows' run: cd ./sqlite3 && go test ./... -v -race diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02d32373..2320b2bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,28 +20,11 @@ jobs: - 1.20.x runs-on: ubuntu-latest steps: + - name: Fetch Repository + uses: actions/checkout@v3 - name: Install Go uses: actions/setup-go@v4 with: go-version: '${{ matrix.go-version }}' - - name: Setup Golang caches - uses: actions/cache@v3 - with: - # In order: - # * Module download cache - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-${{ matrix.go-version }}- - - - name: Fetch Repository - uses: actions/checkout@v3 - name: Test Memory run: cd ./memory && go test ./... -v -race