Merge pull request #269 from jkeyes/main #33
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: PHP Composer | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.2', '8.3'] | |
name: PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Run npm install | |
run: npm install | |
- name: Run npm run production | |
run: npm run production | |
- name: Run test suite | |
run: ./vendor/bin/pest |