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

Feat tests workflow #30

Closed
Closed
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
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Tests"

on:
pull_request:
workflow_dispatch:


jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup PHP Action
uses: shivammathur/setup-php@2.25.5
with:
php-version: '8.0'
env:
TEST_RAYGUN_KEY: ${{ secrets.TEST_RAYGUN_KEY }}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These env keys must be set in order for tests to pass

TEST_APPSIGNAL_KEY: ${{ secrets.TEST_APPSIGNAL_KEY }}
TEST_SENTRY_DSN: ${{ secrets.TEST_SENTRY_DSN }}
- name: Install dependencies
run: composer install --ignore-platform-reqs
- name: Run Tests
run: vendor/bin/phpunit --configuration phpunit.xml tests