Skip to content

Commit

Permalink
ShipSaaS Laravel JWKS
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsandaru committed Oct 5, 2023
1 parent 8c53247 commit 5c07f95
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Test (MySQL & PgSQL)
name: Build & Test (PHP 8.2)

on:
pull_request:
Expand All @@ -11,43 +11,17 @@ on:

jobs:
build:
strategy:
fail-fast: false
matrix:
db: ['mysql', 'pgsql']
runs-on: ubuntu-latest
services:
postgresql:
image: postgres:14
env:
POSTGRES_DB: inbox
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
if: success()

- name: Setup PHP with coverage driver
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}
php-version: 8.2
coverage: pcov

- name: Start MySQL Database
if: matrix.db == 'mysql'
run: |
sudo service mysql start
mysql -uroot -proot -e "CREATE DATABASE inbox;"
cp .github/envs/.env.testing.mysql .env.testing
- name: Start PGSQL Database
if: matrix.db == 'pgsql'
run: |
cp .github/envs/.env.testing.pgsql .env.testing
- name: Bootstrap project
if: success()
run: |
Expand All @@ -60,7 +34,7 @@ jobs:
composer test-coverage
- name: upload coverage to codecov.io
if: success() && matrix.db == 'mysql'
if: success()
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 5c07f95

Please sign in to comment.