Merge pull request #919 from warren5236/redirect-to-home-page-when-lo… #9
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: "Continuous Integration" | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build_sh: | |
name: "build.sh" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- 7.4 | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Install PHP with extensions" | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: "gd, intl, json, mbstring, pdo" | |
coverage: "xdebug" | |
- name: "Cache dependencies installed with composer" | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: "Install dependencies with composer" | |
run: composer install --prefer-dist --no-progress | |
- name: "Run Build Script" | |
run: sh ./build.sh |