forked from shivammathur/icu-intl
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (100 loc) · 3.07 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
name: 'Test workflow'
on:
workflow_dispatch:
jobs:
intl:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04]
icu: [76.1, 75.1, 74.2, 74.1, 73.2, 73.1, 72.1, 71.1, 70.1, 69.1, 68.2, 68.1, 67.1, 66.1, 65.1, 64.2, 63.2, 62.2, 61.2, 60.3, 59.2, 58.3, 57.2, 56.2, 55.2, 54.2, 53.2, 52.2, 51.3, 50.2]
ts: ['ts', 'nts']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP 5.6
uses: shivammathur/setup-php@develop
with:
php-version: 5.6
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 7.0
uses: shivammathur/setup-php@develop
with:
php-version: 7.0
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 7.1
uses: shivammathur/setup-php@develop
with:
php-version: 7.1
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 7.2
uses: shivammathur/setup-php@develop
with:
php-version: 7.2
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 7.3
uses: shivammathur/setup-php@develop
with:
php-version: 7.3
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 7.4
uses: shivammathur/setup-php@develop
with:
php-version: 7.4
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 8.0
uses: shivammathur/setup-php@develop
with:
php-version: 8.0
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 8.1
uses: shivammathur/setup-php@develop
with:
php-version: 8.1
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 8.2
uses: shivammathur/setup-php@develop
with:
php-version: 8.2
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 8.3
uses: shivammathur/setup-php@develop
with:
php-version: 8.3
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Setup PHP 8.4
uses: shivammathur/setup-php@develop
with:
php-version: 8.4
extensions: intl-${{ matrix.icu }}
env:
phpts: ${{ matrix.ts }}
- name: Testing ICU version
run: |
for v in 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4; do
icu_version=$(php$v -i | grep "ICU version =>" | sed -e "s|.*=> s*||")
echo php$v: $icu_version
[ "$icu_version" != "${{ matrix.icu }}" ] && echo "::warning::failed to setup ${{ matrix.icu }} on php $v"
php$v -v
done