-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (25 loc) · 929 Bytes
/
tests.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
name: tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run tests
env:
clientId: ${{secrets.appSid}}
clientSecret: ${{secrets.appKey}}
apiBaseUrl: "https://api-qa.aspose.cloud"
run: |
sed -i "s|replaceClientSecret|$clientSecret|g" tests/phpunit.xml
sed -i "s|replaceClientId|$clientId|g" tests/phpunit.xml
sed -i "s|replaceApiBaseUrl|$apiBaseUrl|g" tests/phpunit.xml
sed -i "s|replaceBootstrap|$PWD/vendor/autoload.php|g" tests/phpunit.xml
vendor/phpunit/phpunit/phpunit --configuration tests/phpunit.xml --testdox tests