Skip to content

Merge pull request #34 from tsukabo/ga-phpunit #1

Merge pull request #34 from tsukabo/ga-phpunit

Merge pull request #34 from tsukabo/ga-phpunit #1

Workflow file for this run

name: phpunit
on:
push:
branches:
- master
pull_request:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP 8.1
run: sudo update-alternatives --set php /usr/bin/php8.1
- name: php check
run: php -v
- 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: composer install
run: composer install --prefer-dist --no-progress
- name: phpunit
run: composer test