Skip to content

Commit

Permalink
Add an integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Jan 15, 2024
1 parent dca894a commit 6a8e756
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.1"

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 6a8e756

Please sign in to comment.