fix: json embedded uuid #49
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| mysql: | |
| name: ${{ matrix.mysql-image }} (${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| mysql-image: | |
| - mysql:5.7 | |
| - mysql:8.0 | |
| - mariadb:10.5 | |
| - mariadb:11.4 | |
| node-version: [22, 24, 26] | |
| services: | |
| mysql: | |
| image: ${{ matrix.mysql-image }} | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd "${{ startsWith(matrix.mysql-image, 'mariadb:') && 'mariadb-admin ping' || 'mysqladmin ping' }}" --health-interval 10s --health-timeout 5s --health-retries 5 | |
| env: | |
| MYSQL_USER: koishi | |
| MYSQL_DATABASE: test | |
| MYSQL_PASSWORD: koishi@114514 | |
| MYSQL_ROOT_PASSWORD: password | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v6 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install | |
| run: yarn --no-immutable | |
| - name: Unit Test | |
| run: yarn test:json mysql | |
| postgres: | |
| name: ${{ matrix.postgres-image }} (${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| postgres-image: | |
| - postgres:16 | |
| - postgres:15 | |
| - postgres:14 | |
| node-version: [22, 24, 26] | |
| services: | |
| postgres: | |
| image: ${{ matrix.postgres-image }} | |
| ports: | |
| - 5432:5432 | |
| env: | |
| POSTGRES_PASSWORD: koishi@114514 | |
| POSTGRES_USER: koishi | |
| POSTGRES_DB: test | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v6 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install | |
| run: yarn --no-immutable | |
| - name: Unit Test | |
| run: yarn test:json postgres | |
| mongo: | |
| name: ${{ matrix.mongo-image }} (${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| mongo-image: | |
| - mongo:6.0 | |
| - mongo:latest | |
| node-version: [22, 24, 26] | |
| services: | |
| mongo: | |
| image: ${{ matrix.mongo-image }} | |
| ports: | |
| - 27017:27017 | |
| # https://stackoverflow.com/questions/66317184/github-actions-cannot-connect-to-mongodb-service | |
| options: --health-cmd "echo 'db.runCommand("ping").ok' | mongosh --quiet" --health-interval 10s --health-timeout 5s --health-retries 5 | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v6 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install | |
| run: yarn --no-immutable | |
| - name: Unit Test | |
| run: yarn test:json mongo | |
| mongo-replica: | |
| name: mongo-replica:${{ matrix.mongo-version }} (${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| mongo-version: | |
| - latest | |
| node-version: [22, 24, 26] | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v6 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Set up MongoDB | |
| uses: supercharge/mongodb-github-action@1.10.0 | |
| with: | |
| mongodb-version: ${{ matrix.mongo-version }} | |
| mongodb-replica-set: test-rs | |
| mongodb-port: 27017 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install | |
| run: yarn --no-immutable | |
| - name: Unit Test | |
| run: yarn test:json mongo | |
| env: | |
| TEST_TRANSACTION_ABORT: '1' | |
| test: | |
| name: ${{ matrix.driver-name }} (${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| driver-name: [sqlite, memory] | |
| node-version: [22, 24, 26] | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v6 | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install | |
| run: yarn --no-immutable | |
| - name: Unit Test | |
| run: yarn test:json ${{ matrix.driver-name }} |