Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration test #6

Merged
merged 2 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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