Merge pull request #223 from buckaroo-it/BP-3490-Add-a-Bancontact-opt… #326
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: Module tests | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup php | |
uses: nanasess/setup-php@v3.3.2 | |
with: | |
php-version: 8.1 | |
- uses: actions/checkout@v3 | |
- name: Update composer lock | |
run: composer update | |
- name: Validate composer json | |
run: composer validate | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Run PHPCS | |
run: composer run phpcs | |
- name: Run PHPSTAN | |
run: composer run phpstan |