Skip to content

Commit

Permalink
Merge pull request #74 from mtmail/basic-github-ci
Browse files Browse the repository at this point in the history
Add Github Actions to run tests
  • Loading branch information
Zverik authored Jun 15, 2024
2 parents 820a18e + 341fb84 commit 09b16d7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI Tests

on:
push:
pull_request:

jobs:
test:
strategy:
matrix:
# https://www.php.net/supported-versions.php
php-version: ['8.3']

name: Level0 tests

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none

- name: Install dependencies
run: composer install --no-progress --no-suggest --no-interaction

- name: Run tests
run: |
composer validate
./vendor/bin/phpunit --display-warnings test/

0 comments on commit 09b16d7

Please sign in to comment.