-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate our CI to run on GitHub Actions
We are moving our CI off of Semaphore
- Loading branch information
1 parent
d8ab9a1
commit ec7ccec
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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 |