Skip to content

Make export statement in the translation file optional #64

Make export statement in the translation file optional

Make export statement in the translation file optional #64

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- master
- 1.1.x
jobs:
test:
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
laravel: [6.*, 7.*, 8.*]
exclude:
# Laravel >= 8.0 doesn't support PHP 7.2
- php: 7.2
laravel: 8.*
include:
- laravel: 6.*
testbench: 4.*
- laravel: 7.*
testbench: 5.*
- laravel: 8.*
testbench: 6.*
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Cache Composer dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-
- name: Cache npm dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress --no-suggest
npm install
- name: Build
run: npm run build
- name: Run PHPUnit tests
run: vendor/bin/phpunit --testdox --colors=always
- name: Run Jest tests
run: npm test