-
Notifications
You must be signed in to change notification settings - Fork 5
24 lines (23 loc) · 879 Bytes
/
Copy pathtest.yml
File metadata and controls
24 lines (23 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Test
on:
push:
branches-ignore: [ staging ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Composer Cache Directory
id: composer-cache
run: "echo \"::set-output name=dir::$(composer config cache-files-dir)\"\n"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: '${{ runner.os }}-composer-${{ hashFiles(''**/composer.lock'') }}'
restore-keys: ${{ runner.os }}-composer-\n
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Run PHPUnit
run: vendor/bin/phpunit --color=always --testdox --coverage-clover clover.xml
- name: Upload to CodeCov
run: bash <(curl -s https://codecov.io/bash)