-
Notifications
You must be signed in to change notification settings - Fork 25
60 lines (56 loc) · 1.45 KB
/
continuous-integration.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
name: "Continuous Integration"
on:
pull_request:
push:
jobs:
ci:
uses: laminas/workflow-continuous-integration/.github/workflows/[email protected]
windows-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- windows-latest
php-versions:
- '8.1'
- '8.2'
- '8.3'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: intl, sodium, zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v3
- name: Run PHPUnit
run: vendor/bin/phpunit
build-phar:
needs:
- ci
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- ubuntu-latest
php-versions:
- '8.1'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
tools: composer, box
php-version: "${{ matrix.php-version }}"
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v3
- name: Build PHAR
run: box compile
- name: Check the PHAR executes
run: php pie.phar --version
- uses: actions/upload-artifact@v4
with:
name: pie-${{ github.sha }}.phar
path: pie.phar