Skip to content

Commit

Permalink
Merge pull request #6 from tideways/Testing
Browse files Browse the repository at this point in the history
Add integration test
  • Loading branch information
beberlei committed Jan 15, 2024
2 parents dca894a + 52bfa21 commit e714abc
Show file tree
Hide file tree
Showing 7 changed files with 7,073 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PHP / Tests

on: push

jobs:
phpunit:
name: "phpunit"
runs-on: "ubuntu-20.04"

strategy:
fail-fast: false
matrix:
phpVersion:
- "8.2"

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

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.phpVersion }}"
tools: "cs2pr"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Install Tideways"
run: |
echo 'deb [signed-by=/usr/share/keyrings/tideways.gpg] https://packages.tideways.com/apt-packages-main any-version main' | sudo tee /etc/apt/sources.list.d/tideways.list > /dev/null
wget -qO - 'https://packages.tideways.com/key.gpg' | gpg --dearmor | sudo tee /usr/share/keyrings/tideways.gpg > /dev/null
sudo apt-get update
sudo apt-get install tideways-php
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: "Run PHPUnit"
run: "php vendor/bin/phpunit"

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
vendor
.idea
.phpunit.cache
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
"license": "MIT",
"homepage": "https://github.com/tideways/laravel-octane-middleware",
"require": {
"php": "^8.0",
"laravel/octane": ">=0.1.0,<2.0"
},
"autoload": {
"psr-4": {"Tideways\\LaravelOctane\\": "src/"}
},
"require-dev": {
"phpunit/phpunit": "^10.5"
}
}
Loading

0 comments on commit e714abc

Please sign in to comment.