forked from OpenMage/magento-lts
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.25 KB
/
phpunit.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: OpenMage LTS - Unit Tests
on:
# Run on all pushes and on all pull requests.
# Prevent the build from running when there are only irrelevant changes.
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
# Allow manually triggering the workflow.
workflow_dispatch:
jobs:
unit-tests:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
repository: OpenMage/Testfield
path: ./
- name: php & Composer version
run: php --version && composer --version
- name: Install dependencies
run: composer install --prefer-dist --no-progress --ignore-platform-reqs
- name: Checkout OpenMage repo
uses: actions/checkout@v3
with:
path: openmage
- name: Install OpenMage dependencies
working-directory: ./openmage
run: composer install --prefer-dist --no-progress --ignore-platform-reqs
- name: run phpUnit
run: bash ./run_unit_tests.sh
- name: Publish Unit Test Results
uses: EnricoMi/[email protected]
if: always()
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: output/*.xml