Skip to content

Commit

Permalink
Merge pull request #778 from daveroverts/ci-stuff
Browse files Browse the repository at this point in the history
ci: add composer stability matrix
  • Loading branch information
daveroverts authored Feb 6, 2024
2 parents c1feb22 + d188af6 commit 7ba1ab5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
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

0 comments on commit 7ba1ab5

Please sign in to comment.