Skip to content

Commit

Permalink
Merge pull request #111 from alleyinteractive/feature/issue-15/add-gi…
Browse files Browse the repository at this point in the history
…thub-actions-for-testing

Issue-15: Add GitHub Actions for Testing This Repo
  • Loading branch information
benpbolton authored Dec 13, 2024
2 parents 7433a63 + 1df3e93 commit 5e8e18f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: General Tests

on:
# Check on PR to develop branch.
pull_request:
branches:
- develop
types: [opened, synchronize, reopened, ready_for_review]
# Also check on weekly schedule to catch regressions early.
schedule:
- cron: '0 0 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
general-tests:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- name: Run PHP Tests in src directory
uses: alleyinteractive/action-test-php@develop
with:
php-version: '8.2'
github-token: ${{ secrets.COMPOSER_ACCESS_TOKEN}}
install-command: |
composer install
(yes '' || true) | php ./configure.php --project_name=Testing --author_name=Testing [email protected]
test-command: |
composer test

0 comments on commit 5e8e18f

Please sign in to comment.