File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 70
70
- uses : actions/checkout@v3
71
71
72
72
- name : Set up MySQL
73
- if : ${{ !startsWith(env.MYSQL_CONNECTION_URL, ' mysql://') }}
73
+ if : ${{ matrix. mysql-version }}
74
74
run : docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/examples/custom-conf:/etc/mysql/conf.d -v $PWD/examples/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
75
75
76
76
- name : Set up Node.js ${{ matrix.node-version }}
@@ -89,13 +89,13 @@ jobs:
89
89
run : npm ci
90
90
91
91
- name : Wait mysql server is ready
92
- if : ${{ !startsWith(env.MYSQL_CONNECTION_URL, ' mysql://') }}
92
+ if : ${{ matrix. mysql-version }}
93
93
run : node tools/wait-up.js
94
94
95
95
- name : Run tests
96
96
run : FILTER=${{matrix.filter}} MYSQL_USE_TLS=${{ matrix.use-tls }} MYSQL_USE_COMPRESSION=${{ matrix.use-compression }} npm run coverage-test
97
97
98
- - run : echo "coverage-artifact-name=`echo -n "${{github.run_id}}-${{ matrix.node-version }}-${{ matrix.mysql-version }}-${{matrix.use-tls}}-${{matrix.use-compression}}" | shasum | cut -d " " -f 1`" >> $GITHUB_ENV
98
+ - 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
99
99
- uses : actions/upload-artifact@v3
100
100
with :
101
101
name : coverage-${{env.coverage-artifact-name}}
You can’t perform that action at this time.
0 commit comments