From d56fb5b5421d6740d81a3eae5fa6dfb51d326139 Mon Sep 17 00:00:00 2001 From: ffranr Date: Tue, 25 Nov 2025 15:23:20 +0000 Subject: [PATCH] ci: split out postgres unit-test run for parallelism --- .github/workflows/main.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20bde8b2..c303198b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -125,10 +125,10 @@ jobs: run: make docs-check ######################## - # run unit tests + # run unit-test sqlite3 race ######################## unit-test: - name: run unit tests + name: run unit-test sqlite3 race runs-on: ubuntu-latest steps: - name: git checkout @@ -139,10 +139,25 @@ jobs: with: go-version: '~${{ env.GO_VERSION }}' - - name: run unit tests + - name: run unit-test sqlite3 race run: make unit-race - - name: run unit test with postgres + ######################## + # run unit-test postgres race + ######################## + unit-test-postgres: + name: run unit-test postgres race + runs-on: ubuntu-latest + steps: + - name: git checkout + uses: actions/checkout@v4 + + - name: setup go ${{ env.GO_VERSION }} + uses: actions/setup-go@v5 + with: + go-version: '~${{ env.GO_VERSION }}' + + - name: run unit-test postgres race run: make unit-postgres-race ########################