-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (39 loc) · 1013 Bytes
/
main.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
name: Test Code Runner
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check passphrase
run: echo $PLAINTEXT
env:
DEBUG_PHRASE: ${{ secrets.GPG_PASSPHRASE }}
PLAINTEXT: $DEBUG_PHRASE
- name: Decrypt large secret
run: ./decrypt_secret.sh
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- uses: php-actions/composer@v5
with:
php_version: 7.2
- name: PHPUnit Tests
uses: php-actions/phpunit@v2
env:
XDEBUG_MODE: coverage
with:
version: 8
php_version: 7.2
bootstrap: vendor/autoload.php
php_extensions: xdebug
configuration: phpunit.xml
args: tests --coverage-clover ./coverage.xml
- uses: codecov/codecov-action@v3
with:
files: ./clover.xml