-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 935 Bytes
/
unittests.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
name: 'PHPUnit tests'
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
timeout-minutes: 15
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: ddev/github-action-setup-ddev@v1
- run: git clone https://github.com/Firesphere/search-testapp.git app
- run: ddev composer install --prefer-dist --no-interaction --no-progress
- run: ddev composer vendor-expose
- run: cp example.env .env
- run: ddev sake dev/build
- run: ddev xdebug
- run: ddev exec phpunit tests --coverage-clover ./coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CORE_CODECOV_TOKEN }}