Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Jul 26, 2023
1 parent 4c36aca commit 573e478
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Test

on: [push, pull_request]
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:

Expand Down Expand Up @@ -28,7 +36,7 @@ jobs:

name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@master
Expand All @@ -43,7 +51,7 @@ jobs:
run: php -v

- name: Cache composer packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
Expand All @@ -67,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
name: PHP lint
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -80,7 +88,7 @@ jobs:
run: php -v

- name: Cache composer packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
Expand All @@ -96,7 +104,7 @@ jobs:
runs-on: ubuntu-latest
needs: [test,lint]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
if: contains(github.ref, 'tags/')
run: |
Expand Down

0 comments on commit 573e478

Please sign in to comment.