Skip to content

Commit

Permalink
Merge pull request #34 from tsukabo/ga-phpunit
Browse files Browse the repository at this point in the history
phpunitをGAで実行させる
  • Loading branch information
tsukabo authored Nov 14, 2023
2 parents ffb05d2 + 16ddf47 commit 9a0418c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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

0 comments on commit 9a0418c

Please sign in to comment.