Fix npm production build #36
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js 12.x | |
uses: actions/[email protected] | |
with: | |
node-version: 12.x | |
- name: Install composer dependencies | |
run: composer install --prefer-dist | |
- name: Install npm dependencies | |
run: npm install | |
- name: Run Mix | |
run: npm run production | |
- name: Run cp .env.example .env | |
run: cp .env.example .env | |
- name: Run php artisan key:generate | |
run: php artisan key:generate | |
- name: Run PHPUnit | |
run: php7.3 vendor/bin/phpunit |