Skip to content

Commit

Permalink
Add testing on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed May 31, 2024
1 parent 0ea816d commit 41a1520
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/automated_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Automated Testing

on:
push:

permissions:
contents: read

jobs:
composer:
name: Validate composer files
runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2

- uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
run: composer validate --strict

phpunit:
name: 'Tests: Unit'
runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2

- uses: actions/checkout@v4

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: "${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}"
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
uses: ramsey/composer-install@v3

- name: 'Run all PHPUnit tests'
run: composer run phpunit

0 comments on commit 41a1520

Please sign in to comment.