Skip to content

Commit 4b04076

Browse files
authored
ci: start migration to a built-in node test runner (#2103)
* chore: initial steps in migration to builtin node test runner * chore: add test:builtin-node-runner npm script * migrate simple execute test to a new test runner
1 parent 64aad46 commit 4b04076

File tree

6 files changed

+426
-197
lines changed

6 files changed

+426
-197
lines changed

.github/workflows/ci-linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ jobs:
4141
mysql-version: "mysql:8.0.18"
4242
use-compression: 1
4343
use-tls: 0
44+
use-builtin-test-runner: 1
4445
- node-version: "20.x"
4546
mysql-version: "mysql:8.0.18"
4647
use-compression: 0
4748
use-tls: 1
49+
use-builtin-test-runner: 1
4850

4951
# 18.x
5052
# - node-version: "18.x"
@@ -113,6 +115,10 @@ jobs:
113115
- name: Run tests
114116
run: FILTER=${{matrix.filter}} MYSQL_USE_TLS=${{ matrix.use-tls }} MYSQL_USE_COMPRESSION=${{ matrix.use-compression }} npm run coverage-test
115117

118+
- name: Run tests with built-in node test runner
119+
if: ${{ matrix.use-builtin-test-runner }}
120+
run: FILTER=${{matrix.filter}} MYSQL_USE_TLS=${{ matrix.use-tls }} MYSQL_USE_COMPRESSION=${{ matrix.use-compression }} npm run test:builtin-node-runner
121+
116122
- run: echo "coverage-artifact-name=`echo -n "${{github.run_id}}-${{ matrix.node-version }}-${{ matrix.mysql-version }}-{${{ matrix.mysql_connection_url_key }}-${{matrix.use-tls}}-${{matrix.use-compression}}" | shasum | cut -d " " -f 1`" >> $GITHUB_ENV
117123
- uses: actions/upload-artifact@v3
118124
with:

0 commit comments

Comments
 (0)