File tree 1 file changed +16
-9
lines changed
1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
tests-osx :
17
- runs-on : macos-13
17
+ runs-on : macos-latest
18
18
strategy :
19
19
fail-fast : false
20
20
matrix :
25
25
mysql_connection_url_key : [""]
26
26
# TODO - add mariadb to the matrix. currently few tests are broken due to mariadb incompatibilities
27
27
include :
28
- # 20.x
28
+ # 20.x
29
29
- node-version : " 20.x"
30
30
mysql-version : " mysql:8.0.33"
31
31
use-compression : 1
@@ -44,12 +44,19 @@ jobs:
44
44
steps :
45
45
- uses : actions/checkout@v3
46
46
47
- - name : install lima
48
- run : brew install lima
47
+ - name : Install Colima
48
+ run : brew install colima
49
+
50
+ - name : Install Docker
51
+ run : brew install --formula docker
52
+
53
+ - name : Start Docker
54
+ run : colima start
55
+
56
+ - name : Pull MySQL
57
+ if : ${{ matrix.mysql-version }}
58
+ run : docker pull ${{ matrix.mysql-version }}
49
59
50
- - name : Setup Docker on macOS
51
- uses : douglascamata/setup-docker-macos-action@v1-alpha
52
-
53
60
- name : Set up MySQL
54
61
if : ${{ matrix.mysql-version }}
55
62
run : docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
65
72
path : ~/.npm
66
73
key : npm-${{ hashFiles('package-lock.json') }}
67
74
restore-keys : npm-
68
-
75
+
69
76
- name : Install npm dependencies
70
77
run : npm ci
71
78
78
85
79
86
- name : Run tests with built-in node test runner
80
87
if : ${{ matrix.use-builtin-test-runner }}
81
- run : FILTER=${{matrix.filter}} MYSQL_USE_TLS=${{ matrix.use-tls }} MYSQL_USE_COMPRESSION=${{ matrix.use-compression }} npm run test:builtin-node-runner
88
+ run : FILTER=${{matrix.filter}} MYSQL_USE_TLS=${{ matrix.use-tls }} MYSQL_USE_COMPRESSION=${{ matrix.use-compression }} npm run test:builtin-node-runner
You can’t perform that action at this time.
0 commit comments