Skip to content

Commit 65f4765

Browse files
author
Jason Roelofs
authored
Migrate our CI to run on GitHub Actions (#51)
We are moving our CI off of Semaphore
1 parent d8ab9a1 commit 65f4765

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request: {}
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
test:
15+
name: Test PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
php: ['8.1', '8.2', '8.3']
21+
laravel: ['7.*', '8.*', '9.*', '10.*']
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
29+
tools: composer
30+
coverage: none
31+
32+
- name: Run composer install
33+
run: |
34+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
35+
composer update --no-interaction --no-suggest --prefer-dist
36+
37+
- name: Lint and formatting
38+
run: |
39+
composer run-script format-check
40+
41+
- name: Run tests
42+
run: |
43+
composer run-script test

0 commit comments

Comments
 (0)