mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.6 to 3.0.7. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3.0.6...v3.0.7) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: PHPStan
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3.0.2
|
|
- name: Change PHP version
|
|
run: |
|
|
sudo update-alternatives --set php /usr/bin/php8.0
|
|
sudo update-alternatives --set phar /usr/bin/phar8.0
|
|
sudo update-alternatives --set phpdbg /usr/bin/phpdbg8.0
|
|
sudo update-alternatives --set php-cgi /usr/bin/php-cgi8.0
|
|
sudo update-alternatives --set phar.phar /usr/bin/phar.phar8.0
|
|
php -version
|
|
- name: Validate composer.json and composer.lock
|
|
run: composer validate
|
|
- name: Cache Composer packages
|
|
id: composer-cache
|
|
uses: actions/cache@v3.0.7
|
|
with:
|
|
path: vendor
|
|
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-php-
|
|
- name: Install dependencies
|
|
if: steps.composer-cache.outputs.cache-hit != 'true'
|
|
run: composer install --prefer-dist --no-progress --no-suggest
|
|
- name: Run phpstan
|
|
run: composer run-script phpstan
|