Skip to content

Commit

Permalink
Migrate our CI to run on GitHub Actions
Browse files Browse the repository at this point in the history
We are moving our CI off of Semaphore
  • Loading branch information
jasonroelofs committed Mar 29, 2024
1 parent d8ab9a1 commit ec7ccec
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit ec7ccec

Please sign in to comment.