generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 8
133 lines (124 loc) · 3 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: "test"
on:
pull_request:
push:
branches:
- main
- "releases/*"
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
timeout-minutes: 15
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- run: npm ci
- run: npm run test
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- ubuntu-22.04
- ubuntu-20.04
- macos-15
- macos-14
- macos-13
- windows-2025
- windows-2022
- windows-2019
mysql:
- "9.1"
- "9.0"
- "8.4"
- "8.3"
- "8.2"
- "8.1"
- "8.0"
- "5.7"
- "5.6"
- "mariadb-11.6"
- "mariadb-11.5"
- "mariadb-11.4"
- "mariadb-11.3"
- "mariadb-11.2"
- "mariadb-11.1"
- "mariadb-11.0"
- "mariadb-10.11"
- "mariadb-10.10"
- "mariadb-10.9"
- "mariadb-10.8"
- "mariadb-10.7"
- "mariadb-10.6"
- "mariadb-10.5"
- "mariadb-10.4"
- "mariadb-10.3"
- "mariadb-10.2"
timeout-minutes: 15
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: "5.40"
- run: npm ci
- run: npm run build
- name: use the action
id: action
uses: ./
with:
mysql-version: ${{ matrix.mysql }}
root-password: very-very-secret
user: my
password: secret
- name: test
run: |
prove -v t
env:
MYSQL_VERSION: ${{ matrix.mysql }}
BASE_DIR: ${{ steps.action.outputs.base-dir }}
# https://github.com/shogo82148/actions-setup-mysql/issues/421
test-issue421:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- run: npm ci
- run: npm run build
- name: use the action
id: action
uses: ./
with:
mysql-version: "8.3"
root-password: very-very-secret
user: my
password: secret
my-cnf: |
port=5729
authentication_policy=mysql_native_password
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"