Skip to content

E2E Test

E2E Test #174

Workflow file for this run

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