Update storage signature, add storage of package metadata #54
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
unitTests: | |
strategy: | |
matrix: | |
phpVersion: ['8.1', '8.2', '8.3'] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
name: PHP ${{ matrix.phpVersion }} | |
env: | |
extensions: curl, fileinfo, openssl, zip | |
key: winter-packager-v1 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-phpunit-${{ matrix.phpVersion }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
steps: | |
- name: Checkout changes | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.phpVersion }} | |
tools: composer:v2 | |
extensions: ${{ env.extensions }} | |
- name: Setup dependency cache | |
id: composercache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composercache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install Composer dependencies | |
run: composer install --no-interaction --no-progress --no-scripts | |
- name: Setup problem matchers for PHPUnit | |
if: matrix.phpVersion == '8.3' | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Run tests | |
run: composer run test | |
staticAnalysis: | |
runs-on: ubuntu-latest | |
name: Static Analysis | |
env: | |
extensions: curl, fileinfo, openssl, zip | |
key: winter-packager-v1 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-phpstan | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
steps: | |
- name: Checkout changes | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
tools: composer:v2 | |
extensions: ${{ env.extensions }} | |
- name: Setup dependency cache | |
id: composercache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composercache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install Composer dependencies | |
run: composer install --no-interaction --no-progress --no-scripts | |
- name: Run tests | |
run: ./vendor/bin/phpstan analyse |