Skip to content

Commit d832b08

Browse files
Merge pull request #3 from Deyjandi/update_workflows
workflows: add env variables
2 parents b5b24df + 73909fa commit d832b08

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212
with:
1313
ref: ${{ github.head_ref }}
1414

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2

.github/workflows/run-tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, develop, test]
66
pull_request:
7-
branches: [main]
7+
branches: [main, develop, test]
88

99
jobs:
1010
test:
1111
runs-on: ${{ matrix.os }}
12+
environment: testing
1213
strategy:
1314
fail-fast: true
1415
matrix:
@@ -24,7 +25,7 @@ jobs:
2425

2526
steps:
2627
- name: Checkout code
27-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
2829

2930
- name: Setup PHP
3031
uses: shivammathur/setup-php@v2
@@ -45,3 +46,14 @@ jobs:
4546
4647
- name: Execute tests
4748
run: vendor/bin/pest
49+
env:
50+
APP_KEY: ${{ secrets.APP_KEY }}
51+
APP_ENV: ${{ secrets.APP_ENV }}
52+
CACHE_DRIVER: ${{ secrets.CACHE_DRIVER }}
53+
FILESYSTEM_DISK: ${{ secrets.FILESYSTEM_DISK }}
54+
VIVA_WALLET_ENV: ${{ secrets.VIVA_WALLET_ENV }}
55+
VIVA_WALLET_MERCHANT_ID: ${{ secrets.VIVA_WALLET_MERCHANT_ID }}
56+
VIVA_WALLET_API_KEY: ${{ secrets.VIVA_WALLET_API_KEY }}
57+
VIVA_WALLET_CLIENT_ID: ${{ secrets.VIVA_WALLET_CLIENT_ID }}
58+
VIVA_WALLET_CLIENT_SECRET: ${{ secrets.VIVA_WALLET_CLIENT_SECRET }}
59+
VIVA_WALLET_PAYMENT_SOURCE_CODE: ${{ secrets.VIVA_WALLET_PAYMENT_SOURCE_CODE }}

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
with:
1515
ref: main
1616

0 commit comments

Comments
 (0)