不要怂,就是干,撸起袖子干!

Commit d399de7e by papb

ci: re-add pg minify-aliases tests

1 parent 0ca876e2
Showing with 4 additions and 1 deletions
...@@ -48,8 +48,9 @@ jobs: ...@@ -48,8 +48,9 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
postgres-version: [9.5, 10] # Does not work with 12 postgres-version: [9.5, 10] # Does not work with 12
minify-aliases: [true, false]
native: [true, false] native: [true, false]
name: Postgres ${{ matrix.postgres-version }}${{ matrix.native && ' (native)' || '' }} name: Postgres ${{ matrix.postgres-version }}${{ matrix.native && ' (native)' || '' }}${{ matrix.minify-aliases && ' (minified aliases)' || '' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
postgres: postgres:
...@@ -63,6 +64,7 @@ jobs: ...@@ -63,6 +64,7 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env: env:
DIALECT: ${{ matrix.native && 'postgres-native' || 'postgres' }} DIALECT: ${{ matrix.native && 'postgres-native' || 'postgres' }}
SEQ_PG_MINIFY_ALIASES: ${{ matrix.minify-aliases && '1' || '' }}
steps: steps:
- run: PGPASSWORD=sequelize_test psql -h localhost -p 5432 -U sequelize_test sequelize_test -c '\l' - run: PGPASSWORD=sequelize_test psql -h localhost -p 5432 -U sequelize_test sequelize_test -c '\l'
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -74,6 +76,7 @@ jobs: ...@@ -74,6 +76,7 @@ jobs:
if: matrix.native if: matrix.native
- name: Unit Tests - name: Unit Tests
run: npm run test-unit run: npm run test-unit
if: ${{ !matrix.minify-aliases }}
- name: Integration Tests - name: Integration Tests
run: npm run test-integration run: npm run test-integration
test-mysql-mariadb: test-mysql-mariadb:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!