Skip to content

Commit

Permalink
Update and rename tests.yml to Jobs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 22, 2023
1 parent f0cd773 commit 5fa7626
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 24 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/Jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PHP Jobs

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
name: Jobs
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- "8.2"

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}

- name: Restore Composer package cache
id: composer-cache
uses: actions/cache@v3
with:
path: "~/.cache/composer"
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php }}-composer-"

- name: Install PHPStan Composer dependencies
run: composer install --prefer-dist --no-interaction --ignore-platform-reqs

- name: Run PHPStan
run: vendor/bin/phpstan analyze
24 changes: 0 additions & 24 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit 5fa7626

Please sign in to comment.