-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 956 Bytes
/
e2e-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
name: E2E Test
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
phpVersions: ["8.2", "8.3"]
name: E2E Tests (PHP ${{ matrix.phpVersions }})
steps:
- uses: actions/checkout@v2
- name: Install PHP ${{ matrix.phpVersions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.phpVersions }}
tools: composer, phive
- name: "Cache tools installed with PHIVE (PHP ${{ matrix.phpVersions }})"
uses: "actions/cache@v3"
with:
path: "${{ runner.temp }}/.phive"
key: "php-phive-${{ hashFiles('.phive/phars.xml') }}"
restore-keys: "php-phive-"
- name: Add hosts to /etc/hosts
run: |
sudo echo "127.0.0.1 atoolo-e2e-test" | sudo tee -a /etc/hosts
- name: Test PHP(${{ matrix.phpVersions }})
run: MATRIX_PHP_VERSION=${{ matrix.phpVersions }} bin/run.sh