-
Notifications
You must be signed in to change notification settings - Fork 15
76 lines (69 loc) · 2.83 KB
/
web.e2e.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 }}