From 7b9331bd14a4597ef77bd32529db0bb4eb60559e Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 20 Feb 2024 22:26:04 +0100 Subject: [PATCH] Merge DB test jobs into one with a matrix --- .github/workflows/ci.yml | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64612bb0..933d71b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,37 +52,20 @@ jobs: with: test-group: api - sqlite-db-tests: + db-tests: + strategy: + matrix: + platform: ['sqlite:ci', 'mysql', 'maria', 'postgres', 'ms'] uses: './.github/workflows/ci-db-tests.yml' with: - platform: 'sqlite:ci' - - mysql-db-tests: - uses: './.github/workflows/ci-db-tests.yml' - with: - platform: 'mysql' - - maria-db-tests: - uses: './.github/workflows/ci-db-tests.yml' - with: - platform: 'maria' - - postgres-db-tests: - uses: './.github/workflows/ci-db-tests.yml' - with: - platform: 'postgres' - - ms-db-tests: - uses: './.github/workflows/ci-db-tests.yml' - with: - platform: 'ms' + platform: ${{ matrix.platform }} upload-coverage: needs: - unit-tests - api-tests - cli-tests - - sqlite-db-tests + - db-tests runs-on: ubuntu-22.04 strategy: matrix: