-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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