Skip to content

Commit

Permalink
Merge pull request #4 from itsnubix/release/1.1
Browse files Browse the repository at this point in the history
Refactor codebase
  • Loading branch information
kylemilloy authored Apr 21, 2024
2 parents 67e63e5 + eaa453b commit 2aac498
Show file tree
Hide file tree
Showing 8 changed files with 565 additions and 550 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on:
pull_request:
branches:
- master
jobs:
phpunit:
name: PHPUnit
timeout-minutes: 10
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4

- name: 🏗 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug

- name: 🔨 Install composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: 🧪 Run tests
run: ./vendor/bin/phpunit
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"source": "https://github.com/itsnubix/nowcal"
},
"require": {
"php": "^8.1",
"ramsey/uuid": ">3.8"
"php": ">8.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
Expand Down
Loading

0 comments on commit 2aac498

Please sign in to comment.