a (#2472) #5103
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: web-e2e | ||
on: [deployment_status] | ||
jobs: | ||
# start disable --- | ||
# temporarily disable workflow as the failure mode is unclear | ||
# more info @ [GAL-539] | ||
if: ${{ false }} | ||
# --- end disable | ||
e2e: | ||
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Chown workspace | ||
run: chown -R $(whoami) . | ||
- name: Checkout | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v2 | ||
- name: "Download Keybase" | ||
run: curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb | ||
- name: "Install Keybase" | ||
run: sudo apt-get install ./keybase_amd64.deb unzip | ||
- name: "Run keybase globally" | ||
run: run_keybase -g | ||
- name: "Oneshot Keybase" | ||
run: keybase oneshot | ||
env: | ||
KEYBASE_USERNAME: ${{secrets.KEYBASE_USERNAME}} | ||
KEYBASE_PAPERKEY: ${{secrets.KEYBASE_PAPER_KEY}} | ||
- name: "Decrypt secrets" | ||
run: keybase decrypt -i _encrypted_internal -o _internal.zip | ||
- name: "Unzip" | ||
run: echo "A" | unzip _internal.zip -d _internal | ||
- name: "Check file" | ||
run: ls | ||
- id: set_var | ||
name: "Read JSON file" | ||
run: | | ||
content=`cat _internal/test-wallet.json` | ||
# the following lines are only required for multi line json | ||
content="${content//'%'/'%25'}" | ||
content="${content//$'\n'/'%0A'}" | ||
content="${content//$'\r'/'%0D'}" | ||
# end of optional handling for multi line json | ||
echo "::set-output name=packageJson::$content" | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # pin@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # pin@v1 | ||
- name: Cache Docker layers | ||
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # pin@v2 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Run e2e tests | ||
run: | | ||
docker-compose -f docker-compose.ci.yml --profile foundry up --build --exit-code-from synpress | ||
env: | ||
COMPOSE_DOCKER_CLI_BUILD: 1 | ||
DOCKER_BUILDKIT: 1 | ||
DOCKER_DEFAULT_PLATFORM: linux/amd64 | ||
NGROK_AUTH: ${{ secrets.NGROK_AUTH }} | ||
PRIVATE_KEY: ${{ fromJson(steps.set_var.outputs.packageJson).pk_2 }} | ||
# cypress dashboard | ||
CYPRESS_PROJECT_ID: igfgns | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }} | ||
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }} | ||
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }} |