Skip to content

Migrate our CI to run on GitHub Actions #1

Migrate our CI to run on GitHub Actions

Migrate our CI to run on GitHub Actions #1

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
pull_request: {}
defaults:
run:
shell: bash
jobs:
test:
name: Test PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
laravel: ['6.x', '7.x', '8.x', '9.x', '10.x']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
tools: composer
coverage: none
- name: Run composer install
run: |
composer install -n --prefer-dist
- name: Prepare Laravel Application
run: |
cp .env.ci .env
php artisan key:generate
- name: Run tests
run: |
php artisan test