generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 8
117 lines (108 loc) · 2.66 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
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-24.04-arm
- ubuntu-22.04-arm
- macos-15
- macos-14
- macos-13
- windows-2025
- windows-2022
- windows-2019
mysql:
- "9.2"
- "8.4" # LTS
- "8.0"
- "mariadb-11.7"
- "mariadb-11.6"
- "mariadb-11.4" # LTS
- "mariadb-10.11" # LTS
- "mariadb-10.6" # LTS
- "mariadb-10.5" # LTS
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"