Merge pull request #576 from vtex/LOC-14706-ECU #254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: IO App Cypress | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
setup-accounts: | |
runs-on: ubuntu-latest | |
outputs: | |
accounts: ${{ steps.get-accounts.outputs.accounts }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: vtex/checkout-ui-tests | |
- id: get-accounts | |
name: Get accounts.json | |
run: | | |
{ | |
accounts=$(cat ./accounts.json) | |
echo "accounts<<EOF" | |
echo $accounts | |
echo "EOF" | |
} >> $GITHUB_OUTPUT | |
shell: bash | |
Cypress: | |
needs: setup-accounts | |
uses: vtex/action-io-app-cypress/.github/workflows/cypress.yml@v1 | |
with: | |
accounts: ${{ needs.setup-accounts.outputs.accounts }} | |
tests-repository: vtex/checkout-ui-tests | |
parallel: true | |
containers: 30 | |
secrets: | |
app-key: ${{ secrets.APP_KEY }} | |
app-token: ${{ secrets.APP_TOKEN }} | |
record-key: ${{ secrets.RECORD_KEY }} |