-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.75 KB
/
phpunit-feature.yml
File metadata and controls
59 lines (51 loc) · 1.75 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: PHPUnit Feature
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
feature:
name: PHPUnit feature suite
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Checkout server
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Checkout workflow package from GitHub
if: github.server_url == 'https://github.com'
uses: actions/checkout@v6
with:
repository: durable-workflow/workflow
ref: 2.0.0-alpha.172
path: workflow-package
persist-credentials: false
- name: Checkout workflow package from current Actions server
if: github.server_url != 'https://github.com'
uses: actions/checkout@v6
with:
repository: ${{ github.repository_owner }}/workflow
ref: 2.0.0-alpha.172
path: workflow-package
token: ${{ secrets.CROSS_REPO_READ_TOKEN }}
github-server-url: ${{ github.server_url }}
persist-credentials: false
- name: Remove workflow package Git metadata
shell: bash
run: rm -rf workflow-package/.git
- name: Run feature suite
shell: bash
run: |
set -euo pipefail
tar \
--exclude=.git \
--exclude='*/.git' \
--exclude=vendor \
--exclude='*/vendor' \
--exclude=build \
--exclude='*/build' \
-cf - . \
| docker run --rm -i -w /app --entrypoint sh composer:2 \
-lc 'tar -xf - -C /app && cp -a /app/workflow-package /workflow && composer install --no-interaction --no-progress --prefer-dist && vendor/bin/phpunit tests/Feature --no-progress --colors=never'