Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #228
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: PHPUnit | |
on: | |
- push | |
- pull_request | |
jobs: | |
phpunit: | |
name: PHPUnit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Add kjmodulebedrock as a test module | |
uses: actions/checkout@v2 | |
with: | |
repository: "Kaudaj/kjmodulebedrock" | |
ref: "b1bf4921fe017498120237c3744daeb9fb81675e" | |
path: "tests/Resources/modules/kjmodulebedrock" | |
- name: Cache vendor folder | |
uses: actions/cache@v1 | |
with: | |
path: vendor | |
key: php-${{ hashFiles('composer.lock') }} | |
- name: Cache composer folder | |
uses: actions/cache@v2 | |
with: | |
path: ~/.composer/cache | |
key: php-composer-cache | |
- name: "Setup Php 7.2" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.2" | |
- name: "Install Composer" | |
run: composer install | |
- name: Run PHPUnit | |
run: | | |
cd ${{ github.workspace }} | |
./vendor/bin/phpunit -c tests/Unit/phpunit.xml |