Skip to content

Commit

Permalink
rename php.php.yml to build.yml; add static analysis to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Clifford Vickrey committed Oct 10, 2023
1 parent aa94e87 commit b2f0d52
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/php.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# GitHub Action for Build
name: Testing Crosstabs
on: [push, pull_request]
name: Building Crosstabs
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['8.2']
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
php-versions: [ '8.2' ]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
Expand All @@ -28,13 +28,17 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Test with phpunit
run: composer run-script test

- name: Statically analyse with PHPStan
run: composer run-script analyse

- name: Statically analyse with Psalm
run: composer run-script psalm

0 comments on commit b2f0d52

Please sign in to comment.