Skip to content

Bump the npm_and_yarn group across 4 directories with 21 updates #27

Bump the npm_and_yarn group across 4 directories with 21 updates

Bump the npm_and_yarn group across 4 directories with 21 updates #27

name: Unit Tests
on:
push:
branches:
- master
paths:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
pull_request:
paths:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
jobs:
unittests:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.0
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Get Composer Cache Directory
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Get yarn cache
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install composer dependencies
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
run: |
composer install --no-scripts
- name: Run Testsuite
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
run: vendor/bin/phpunit tests/