mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Run blackbox tests in parallel (#16048)
* Run blackbox tests in parallel * Add slight delay for updates in timezone tests * Revert trigger on PR
This commit is contained in:
20
.github/workflows/blackbox-main.yml
vendored
20
.github/workflows/blackbox-main.yml
vendored
@@ -21,8 +21,20 @@ env:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: All Databases
|
||||
name: ${{ matrix.vendor }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
vendor:
|
||||
- sqlite3
|
||||
- postgres
|
||||
- postgres10
|
||||
- mysql
|
||||
- maria
|
||||
- mssql
|
||||
- oracle
|
||||
- cockroachdb
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
@@ -31,6 +43,7 @@ jobs:
|
||||
uses: ./.github/actions/prepare
|
||||
|
||||
- name: Install Oracle client
|
||||
if: matrix.vendor == 'oracle'
|
||||
run: |
|
||||
sudo apt update -y && sudo apt install -y alien libaio1 && \
|
||||
wget https://download.oracle.com/otn_software/linux/instantclient/214000/$ORACLE_DL && \
|
||||
@@ -40,7 +53,8 @@ jobs:
|
||||
ORACLE_DL: oracle-instantclient-basic-21.4.0.0.0-1.el8.x86_64.rpm
|
||||
|
||||
- name: Start Databases
|
||||
run: docker compose -f tests-blackbox/docker-compose.yml up -d --quiet-pull --wait
|
||||
if: matrix.vendor != 'sqlite3'
|
||||
run: docker compose -f tests-blackbox/docker-compose.yml up ${{ matrix.vendor }} -d --quiet-pull --wait
|
||||
|
||||
- name: Run Tests
|
||||
run: pnpm run -w test:blackbox
|
||||
run: TEST_DB=${{ matrix.vendor }} pnpm run -w test:blackbox
|
||||
|
||||
Reference in New Issue
Block a user