Skip to content

Commit

Permalink
Main (#5)
Browse files Browse the repository at this point in the history
* ci: switch to shivammathur/setup-php

---------

Co-authored-by: Sebastian <sebastian@polarstern-energie.de>
  • Loading branch information
sWalbrun and sWalbrun committed Jun 15, 2023
1 parent 6e8ec80 commit 8f4c815
Show file tree
Hide file tree
Showing 30 changed files with 583 additions and 910 deletions.
84 changes: 0 additions & 84 deletions .github/workflows/ci.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: fix php code style issues

on: [ push ]

jobs:
php-code-styling:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.3.0

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
54 changes: 54 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: run-tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 8.1 ]
laravel: [ 10.* ]
stability: [ prefer-stable ]
include:
- laravel: 10.*
testbench: 7.*

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3

- 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, imagick, fileinfo, xdebug
coverage: xdebug

- name: Grant write permission to root
run:
chmod +w ./

- name: Install composer dependencies
run: composer install --no-scripts

- name: Prepare Laravel Application
run: |
php -r "file_exists('.env') || copy('.env.testing.example', '.env.testing');"
php artisan key:generate --env=testing
- name: Execute tests
run: vendor/bin/pest --configuration phpunit.xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: build/logs/clover.xml
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ storage/*.key
/data/redis/
/public/build/
/.phpunit.cache/
/build/
solawi
49 changes: 0 additions & 49 deletions database/migrations/2014_10_12_000000_create_users_table.php

This file was deleted.

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions database/migrations/2019_08_19_000000_create_failed_jobs_table.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8f4c815

Please sign in to comment.