Skip to content

Commit

Permalink
Attempt to fix GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed May 8, 2024
1 parent 7ca93af commit b9736ba
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: CI

on: [push, pull_request]
on: [push]

jobs:
modern:
moderate-modern:
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
phpunit-versions: ['latest']

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -20,14 +20,11 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, sodium
ini-values: post_max_size=256M, max_execution_time=180
tools: psalm:4, phpunit:${{ matrix.phpunit-versions }}
ini-values: error_reporting=-1, display_errors=On
coverage: none

- name: Install dependencies
run: composer install
- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"

- name: PHPUnit tests
run: phpunit

- name: Static Analysis
run: psalm --output-format=github
run: vendor/bin/phpunit
30 changes: 30 additions & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Psalm

on: [push]

jobs:
psalm:
name: Psalm on PHP ${{ matrix.php-versions }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['8.3']
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: psalm:4
coverage: none

- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"
with:
composer-options: --no-dev

- name: Static Analysis
run: psalm

0 comments on commit b9736ba

Please sign in to comment.