Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add composer stability matrix #778

Merged
merged 4 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# GitHub Action for Laravel with MySQL
name: CI

on:
push:
branches: [main]
branches: [main, beta, alpha]
pull_request:
branches: [main]
branches: [main, beta, alpha]
jobs:
test-php-mysql:
name: Test PHP ${{ matrix.php-versions }} + Node ${{ matrix.node }} with MySQL
name: Test PHP ${{ matrix.php-versions }} (${{ matrix.stability }}) + Node ${{ matrix.node }} + ${{ matrix.os }} with MySQL
runs-on: ubuntu-latest
env:
DB_DATABASE: laravel
Expand Down Expand Up @@ -37,6 +37,8 @@ jobs:
matrix:
php-versions: ["8.2", "8.3"]
node: [16, 18, 20]
stability: [prefer-lowest, prefer-stable]
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -88,8 +90,9 @@ jobs:

- name: Copy/Paste Detector
run: phpcpd app/ --min-lines=50

test-php-postgresql:
name: Test PHP ${{ matrix.php-versions }} + Node ${{ matrix.node }} with PostgreSQL
name: Test PHP ${{ matrix.php-versions }} (${{ matrix.stability }}) + Node ${{ matrix.node }} + ${{ matrix.os }} with PostgreSQL
runs-on: ubuntu-latest
env:
BROADCAST_DRIVER: log
Expand Down Expand Up @@ -121,6 +124,8 @@ jobs:
matrix:
php-versions: ["8.2", "8.3"]
node: [16, 18, 20]
stability: [prefer-lowest, prefer-stable]
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function up()
$table->string('name');
$table->timestamps();
});
DB::table('airports')->insert(['icao' => 'EHAM', 'iata' => 'AMS', 'name' => 'Amsterdam Airport Schiphol']);
// DB::table('airports')->insert(['icao' => 'EHAM', 'iata' => 'AMS', 'name' => 'Amsterdam Airport Schiphol']);
}

/**
Expand Down
Loading