-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (29 loc) · 1001 Bytes
/
test.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: [pull_request]
jobs:
phpunit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build container
run: docker build -t multi-payment .
- name: Install Dependencies
run: docker run -v $(pwd):/app multi-payment composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests via PHPUnit
env:
APP_ENV: testing
MULTIPAYMENT_DEFAULT: iugu
IUGU_ID: ${{ secrets.IUGU_ID }}
IUGU_APIKEY: ${{ secrets.IUGU_APIKEY }}
MOIP_APITOKEN: ${{ secrets.MOIP_APITOKEN }}
MOIP_APIKEY: ${{ secrets.MOIP_APIKEY }}
run: |
docker run \
--volume $(pwd):/app \
--env APP_ENV \
--env MULTIPAYMENT_DEFAULT \
--env IUGU_ID \
--env IUGU_APIKEY \
--env MOIP_APITOKEN \
--env MOIP_APIKEY \
multi-payment composer test