Skip to content

Commit

Permalink
chore: lift run-e2e to yarn-project earthfile (#6018)
Browse files Browse the repository at this point in the history
can now `earthly +./yarn-project/run-e2e --test=e2e_token_contract`
  • Loading branch information
just-mitch authored Apr 25, 2024
1 parent ffd5f46 commit b7900b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
# (Note ARM uses just 2 tests as a smoketest)
- name: Create list of end-to-end jobs
id: e2e_list
run: echo "list=$(earthly ls ./yarn-project/end-to-end | grep -v -E '(\+base)|(\+e2e-test-single)' | sed 's/+//' | jq -R . | jq -cs .)" >> $GITHUB_OUTPUT
run: echo "list=$(earthly ls ./yarn-project/end-to-end | grep -v '+base' | sed 's/+//' | jq -R . | jq -cs .)" >> $GITHUB_OUTPUT

# all the end-to-end integration tests for aztec
e2e:
Expand Down
7 changes: 6 additions & 1 deletion yarn-project/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,9 @@ format-check:

test:
FROM +build
RUN yarn test
RUN yarn test

run-e2e:
ARG test
FROM +end-to-end
RUN DEBUG=aztec:* yarn test $test
5 changes: 0 additions & 5 deletions yarn-project/end-to-end/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ e2e-tests:
FROM ../+end-to-end
RUN yarn test ./src/e2e

e2e-test-single:
ARG test
FROM ../+end-to-end
RUN yarn test $test

flakey-e2e-tests:
FROM ../+end-to-end
RUN yarn test --passWithNoTests ./src/flakey || true
Expand Down

0 comments on commit b7900b8

Please sign in to comment.