Skip to content

Commit

Permalink
CI testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperhartwich committed Jan 25, 2024
1 parent 7d4d573 commit d759035
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
stability: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, bcmath, intl
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Ticketbutler

[![Latest Version on Packagist](https://img.shields.io/packagist/v/kasperhartwich/ticketbutler.svg?style=flat-square)](https://packagist.org/packages/kasperhartwich/ticketbutler)
[![Tests](https://img.shields.io/github/actions/workflow/status/kasperhartwich/ticketbutler/tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/kasperhartwich/ticketbutler/actions/workflows/tests.yml)


This is a client for the [Ticketbutler API](https://lab.ticketbutler.io).

## Installation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"symfony/var-dumper": "^7.0",
"symfony/var-dumper": "^6.4",
"laravel/pint": "^1.13"
},
"autoload": {
Expand Down

0 comments on commit d759035

Please sign in to comment.