Skip to content

Commit

Permalink
Fix e2e test workflow (#736)
Browse files Browse the repository at this point in the history
* Fix e2e test workflow

Added a simple way to fix e2e test suite.

---------

Co-authored-by: humaite <humaite@arweave>
  • Loading branch information
humaite and humaite authored Feb 26, 2025
1 parent 6c746b6 commit 095e7fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ name: "Arweave e2e Tests Suites"
on:
workflow_dispatch:
schedule:
- cron: "0 13 * * 1"
pull_request_target:
types: [opened]
branches:
- 'master'
- 'release/**'
- 'releases/**'
- cron: "0 13 * * *"

jobs:
build:
Expand Down Expand Up @@ -103,6 +97,9 @@ jobs:
- name: Build arweave test sources
run: ./ar-rebar3 test compile

- name: Build arweave e2e test sources
run: ./ar-rebar3 e2e compile

# some artifacts are compiled and only available
# in arweave directy (libraries)
- name: Prepare artifacts
Expand Down
12 changes: 10 additions & 2 deletions scripts/github_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,16 @@ EXIT_CODE=0
export PATH="${PWD}/_build/erts/bin:${PATH}"
export ERL_EPMD_ADDRESS="127.0.0.1"
export NAMESPACE="${NAMESPACE_FLAG}"
export ERL_PATH_ADD="$(echo ${PWD}/_build/test/lib/*/ebin)"
export ERL_PATH_TEST="${PWD}/_build/test/lib/arweave/test"

if test "${MODE}" = "e2e"
then
export ERL_PATH_ADD="$(echo ${PWD}/_build/e2e/lib/*/ebin)"
export ERL_PATH_TEST="${PWD}/_build/e2e/lib/arweave/e2e"
else
export ERL_PATH_ADD="$(echo ${PWD}/_build/test/lib/*/ebin)"
export ERL_PATH_TEST="${PWD}/_build/test/lib/arweave/test"
fi

export ERL_PATH_CONF="${PWD}/config/sys.config"
export ERL_TEST_OPTS="-pa ${ERL_PATH_ADD} ${ERL_PATH_TEST} -config ${ERL_PATH_CONF}"

Expand Down

0 comments on commit 095e7fa

Please sign in to comment.