Skip to content

Commit

Permalink
Merge pull request #43 from achmadhadikurnia/test/update-tests
Browse files Browse the repository at this point in the history
test(action): fix replacement in run-tests.yml
  • Loading branch information
achmadhadikurnia authored Jul 4, 2024
2 parents b409534 + f743cc1 commit 92c5500
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,65 +60,74 @@ jobs:
- name: Replace SIASN_MODE in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_MODE}}'
replace: '${{ secrets.SIASN_MODE }}'
replace: ${{ secrets.SIASN_MODE }}
regex: false

- name: Replace SIASN_APIM_USERNAME in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_APIM_USERNAME}}'
replace: '${{ secrets.SIASN_APIM_USERNAME }}'
replace: ${{ secrets.SIASN_APIM_USERNAME }}
regex: false

- name: Replace SIASN_APIM_PASSWORD in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_APIM_PASSWORD}}'
replace: '${{ secrets.SIASN_APIM_PASSWORD }}'
replace: ${{ secrets.SIASN_APIM_PASSWORD }}
regex: false

- name: Replace SIASN_SSO_CLIENT_ID in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_SSO_CLIENT_ID}}'
replace: '${{ secrets.SIASN_SSO_CLIENT_ID }}'
replace: ${{ secrets.SIASN_SSO_CLIENT_ID }}
regex: false

- name: Replace SIASN_SSO_USERNAME in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_SSO_USERNAME}}'
replace: '${{ secrets.SIASN_SSO_USERNAME }}'
replace: ${{ secrets.SIASN_SSO_USERNAME }}
regex: false

- name: Replace SIASN_SSO_PASSWORD in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_SSO_PASSWORD}}'
replace: '${{ secrets.SIASN_SSO_PASSWORD }}'
replace: ${{ secrets.SIASN_SSO_PASSWORD }}
regex: false

- name: Replace SIASN_CONST_INSTANSI_ID in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_CONST_INSTANSI_ID}}'
replace: '${{ secrets.SIASN_CONST_INSTANSI_ID }}'
replace: ${{ secrets.SIASN_CONST_INSTANSI_ID }}
regex: false

- name: Replace SIASN_CONST_SATUAN_KERJA_ID in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_CONST_SATUAN_KERJA_ID}}'
replace: '${{ secrets.SIASN_CONST_SATUAN_KERJA_ID }}'
replace: ${{ secrets.SIASN_CONST_SATUAN_KERJA_ID }}
regex: false

- name: Replace SIASN_CONST_PNS_ORANG_ID in phpunit.xml
uses: jacobtomlinson/gha-find-replace@v3
with:
files: 'phpunit.xml'
include: 'phpunit.xml'
find: '{{SIASN_CONST_PNS_ORANG_ID}}'
replace: '${{ secrets.SIASN_CONST_PNS_ORANG_ID }}'
replace: ${{ secrets.SIASN_CONST_PNS_ORANG_ID }}
regex: false

- name: Execute tests
run: vendor/bin/pest --ci
Expand Down

0 comments on commit 92c5500

Please sign in to comment.