E2E Test #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |