chore: upgrade mysql2 to v3 #531
Workflow file for this run
This file contains 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
# !!! This file is auto-generated, do not edit by hand !!! | |
# To make changes, edit .github/workflows-src/test.ts and then run: | |
# | |
# github-actions-workflow-builder --directory ".github/workflows-src" | |
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
registry-url: https://registry.npmjs.org | |
- name: Get yarn cache directory path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: step_3 | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ steps.step_3.outputs.dir }} | |
node_modules | |
packages/*/node_modules | |
key: ${{ runner.os }}-20.x-${{ hashFiles('yarn.lock') }}-2 | |
- run: yarn install --prefer-offline | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
packages/bigquery/lib | |
packages/cache/lib | |
packages/connection-pool/lib | |
packages/dataloader/lib | |
packages/escape-identifier/lib | |
packages/expo/lib | |
packages/lock/lib | |
packages/migrations-base/lib | |
packages/mock-db/lib | |
packages/mock-db-typed/lib | |
packages/mysql/lib | |
packages/mysql-config/lib | |
packages/mysql-schema-cli/lib | |
packages/mysql-schema-introspect/lib | |
packages/mysql-schema-print-types/lib | |
packages/mysql-test/lib | |
packages/mysql-typed/lib | |
packages/pg/lib | |
packages/pg-bulk/lib | |
packages/pg-cluster/lib | |
packages/pg-config/lib | |
packages/pg-connection-string/lib | |
packages/pg-create/lib | |
packages/pg-data-type-id/lib | |
packages/pg-errors/lib | |
packages/pg-migrations/lib | |
packages/pg-schema-cli/lib | |
packages/pg-schema-introspect/lib | |
packages/pg-schema-print-types/lib | |
packages/pg-test/lib | |
packages/pg-typed/lib | |
packages/push-to-async-iterable/lib | |
packages/queue/lib | |
packages/shared/lib | |
packages/shared-print-types/lib | |
packages/split-sql-query/lib | |
packages/sql/lib | |
packages/sqlite/lib | |
packages/sqlite-sync/lib | |
packages/validate-unicode/lib | |
packages/websql/lib | |
packages/websql-core/lib | |
packages/with-container/lib | |
packages/bigquery/.last_build | |
packages/cache/.last_build | |
packages/connection-pool/.last_build | |
packages/dataloader/.last_build | |
packages/escape-identifier/.last_build | |
packages/expo/.last_build | |
packages/lock/.last_build | |
packages/migrations-base/.last_build | |
packages/mock-db/.last_build | |
packages/mock-db-typed/.last_build | |
packages/mysql/.last_build | |
packages/mysql-config/.last_build | |
packages/mysql-schema-cli/.last_build | |
packages/mysql-schema-introspect/.last_build | |
packages/mysql-schema-print-types/.last_build | |
packages/mysql-test/.last_build | |
packages/mysql-typed/.last_build | |
packages/pg/.last_build | |
packages/pg-bulk/.last_build | |
packages/pg-cluster/.last_build | |
packages/pg-config/.last_build | |
packages/pg-connection-string/.last_build | |
packages/pg-create/.last_build | |
packages/pg-data-type-id/.last_build | |
packages/pg-errors/.last_build | |
packages/pg-migrations/.last_build | |
packages/pg-schema-cli/.last_build | |
packages/pg-schema-introspect/.last_build | |
packages/pg-schema-print-types/.last_build | |
packages/pg-test/.last_build | |
packages/pg-typed/.last_build | |
packages/push-to-async-iterable/.last_build | |
packages/queue/.last_build | |
packages/shared/.last_build | |
packages/shared-print-types/.last_build | |
packages/split-sql-query/.last_build | |
packages/sql/.last_build | |
packages/sqlite/.last_build | |
packages/sqlite-sync/.last_build | |
packages/validate-unicode/.last_build | |
packages/websql/.last_build | |
packages/websql-core/.last_build | |
packages/with-container/.last_build | |
key: v2-build-output-${{ hashFiles('yarn.lock', 'packages/bigquery/src', | |
'packages/cache/src', 'packages/connection-pool/src', | |
'packages/dataloader/src', 'packages/escape-identifier/src', | |
'packages/expo/src', 'packages/lock/src', | |
'packages/migrations-base/src', 'packages/mock-db/src', | |
'packages/mock-db-typed/src', 'packages/mysql/src', | |
'packages/mysql-config/src', 'packages/mysql-schema-cli/src', | |
'packages/mysql-schema-introspect/src', | |
'packages/mysql-schema-print-types/src', 'packages/mysql-test/src', | |
'packages/mysql-typed/src', 'packages/pg/src', | |
'packages/pg-bulk/src', 'packages/pg-cluster/src', | |
'packages/pg-config/src', 'packages/pg-connection-string/src', | |
'packages/pg-create/src', 'packages/pg-data-type-id/src', | |
'packages/pg-errors/src', 'packages/pg-migrations/src', | |
'packages/pg-schema-cli/src', 'packages/pg-schema-introspect/src', | |
'packages/pg-schema-print-types/src', 'packages/pg-test/src', | |
'packages/pg-typed/src', 'packages/push-to-async-iterable/src', | |
'packages/queue/src', 'packages/shared/src', | |
'packages/shared-print-types/src', 'packages/split-sql-query/src', | |
'packages/sql/src', 'packages/sqlite/src', | |
'packages/sqlite-sync/src', 'packages/validate-unicode/src', | |
'packages/websql/src', 'packages/websql-core/src', | |
'packages/with-container/src') }} | |
restore-keys: v2-build-output- | |
- run: yarn build | |
- name: "Save output: build" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build | |
path: |- | |
packages/*/lib | |
packages/*/.last_build | |
outputs: | |
output: ${{ toJSON('build') }} | |
test_node: | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18.x | |
- 20.x | |
- 22.x | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- name: Get yarn cache directory path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: step_3 | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ steps.step_3.outputs.dir }} | |
node_modules | |
packages/*/node_modules | |
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}-2 | |
- run: yarn install --prefer-offline | |
- name: "Load output: ${{ fromJSON(needs.build.outputs.output) }}" | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ fromJSON(needs.build.outputs.output) }} | |
path: packages/ | |
- run: yarn test:node | |
test_pg: | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18.x | |
- 22.x | |
pg: | |
- 10.14-alpine | |
- 11.9-alpine | |
- 12.4-alpine | |
- 13.0-alpine | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- name: Get yarn cache directory path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: step_3 | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ steps.step_3.outputs.dir }} | |
node_modules | |
packages/*/node_modules | |
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}-2 | |
- run: yarn install --prefer-offline | |
- name: "Load output: ${{ fromJSON(needs.build.outputs.output) }}" | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ fromJSON(needs.build.outputs.output) }} | |
path: packages/ | |
- run: yarn test:pg | |
env: | |
PG_TEST_IMAGE: postgres:${{ matrix.pg }} | |
PG_TEST_DEBUG: "TRUE" | |
test_mysql: | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 18.x | |
- 22.x | |
mysql: | |
- 5.6.51 | |
- 5.7.33 | |
- 8.0.23 | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- name: Get yarn cache directory path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: step_3 | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ steps.step_3.outputs.dir }} | |
node_modules | |
packages/*/node_modules | |
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}-2 | |
- run: yarn install --prefer-offline | |
- name: "Load output: ${{ fromJSON(needs.build.outputs.output) }}" | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ fromJSON(needs.build.outputs.output) }} | |
path: packages/ | |
- run: yarn test:mysql | |
env: | |
MYSQL_TEST_IMAGE: mysql:${{ matrix.mysql }} | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
registry-url: https://registry.npmjs.org | |
- name: Get yarn cache directory path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: step_3 | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ steps.step_3.outputs.dir }} | |
node_modules | |
packages/*/node_modules | |
key: ${{ runner.os }}-20.x-${{ hashFiles('yarn.lock') }}-2 | |
- run: yarn install --prefer-offline | |
- run: yarn prettier:check | |
lint: | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
registry-url: https://registry.npmjs.org | |
- name: Get yarn cache directory path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
id: step_3 | |
- name: Enable Cache | |
uses: actions/cache@v4 | |
with: | |
path: |- | |
${{ steps.step_3.outputs.dir }} | |
node_modules | |
packages/*/node_modules | |
key: ${{ runner.os }}-20.x-${{ hashFiles('yarn.lock') }}-2 | |
- run: yarn install --prefer-offline | |
- name: "Load output: ${{ fromJSON(needs.build.outputs.output) }}" | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ fromJSON(needs.build.outputs.output) }} | |
path: packages/ | |
- run: yarn tslint |