Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .config/forest.dic
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ FIP
FVM
GC
GiB
Grafana
HAMT
hasher
healthcheck
Expand All @@ -73,6 +74,7 @@ ip
IPLD
JSON
JWT
k6
Kademlia
Kubernetes
Leptos
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/test.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: E2E Test

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
Expand All @@ -20,11 +20,13 @@ env:
RUSTC_WRAPPER: sccache
CC: sccache clang
CXX: sccache clang++
FAUCET_TOPUP_REQ_URL: '${{ vars.FAUCET_TOPUP_REQ_URL }}'
FAUCET_TX_URL_CALIBNET: '${{ vars.FAUCET_TX_URL_CALIBNET }}'
FAUCET_TX_URL_MAINNET: '${{ vars.FAUCET_TX_URL_MAINNET }}'

jobs:
e2e:
runs-on: ubuntu-latest

steps:
- name: Setup sccache
uses: mozilla-actions/[email protected]
Expand All @@ -49,9 +51,16 @@ jobs:
- name: Install worker-build
run: cargo install --locked worker-build

- uses: nanasess/setup-chromedriver@v2
- run: |
chromedriver --port=9515 &
- name: Set up k6 (with browser)
uses: grafana/setup-k6-action@v1
with:
browser: true

- name: Set up secrets
shell: bash
run: |
echo "SECRET_WALLET=${{ secrets.TEST_CALIBNET_PRIVATE_KEY_HEX }}" > .dev.vars
echo "SECRET_MAINNET_WALLET=${{ secrets.TEST_MAINNET_PRIVATE_KEY_HEX }}" >> .dev.vars

- name: Run website
run: |
Expand All @@ -62,8 +71,7 @@ jobs:
echo "waiting"
timeout 120 sh -c 'until nc -z $0 $1; do sleep 1; done' 127.0.0.1 8787

- name: E2E
run: |
cd e2e
cargo build
cargo run
- name: Run k6 E2E script
uses: grafana/run-k6-action@v1
with:
path: 'e2e/script.js'
Loading
Loading