Skip to content

Commit

Permalink
test: add php 8.2, 8.3 workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
021-projects committed Mar 17, 2024
1 parent f2a4a29 commit 9ff95a6
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/tests-php-8.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
laravel-tests:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.2'
- uses: actions/checkout@v3
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: composer test
29 changes: 29 additions & 0 deletions .github/workflows/tests-php-8.3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
laravel-tests:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.3'
- uses: actions/checkout@v3
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: composer test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center"><a href="https://021-projects.github.io/laravel-wallet/8.x" target="_blank"><img src="https://raw.githubusercontent.com/021-projects/laravel-wallet/master/docs/public/code-hero.png" width="470" alt="Laravel Wallet Code Example"></a></p>

<p align="center">
<a href="https://github.com/021-projects/laravel-wallet/actions/workflows/tests.yml"><img src="https://github.com/021-projects/laravel-wallet/actions/workflows/tests.yml/badge.svg?branch=master" alt="Tests"></a>
<a href="https://github.com/021-projects/laravel-wallet/actions/workflows/tests-php-8.3.yml"><img src="https://github.com/021-projects/laravel-wallet/actions/workflows/tests-php-8.3.yml/badge.svg?branch=master" alt="Tests"></a>
<a href="https://packagist.org/packages/021/laravel-wallet"><img src="https://img.shields.io/packagist/dt/021/laravel-wallet" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/021/laravel-wallet"><img src="https://img.shields.io/packagist/v/021/laravel-wallet" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/021/laravel-wallet"><img src="https://img.shields.io/packagist/l/021/laravel-wallet" alt="License"></a>
Expand Down

0 comments on commit 9ff95a6

Please sign in to comment.