Skip to content

Commit 87511cb

Browse files
committed
Install Wasp from linked PR
1 parent 1c7f926 commit 87511cb

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ jobs:
2020
- name: Checkout the repo
2121
uses: actions/checkout@v4
2222

23-
- name: Get linked PR branch
24-
id: get-linked-pr-branch
25-
uses: ./.github/actions/get-linked-pr
26-
with:
27-
target-repo: wasp-lang/wasp
28-
2923
- name: Setup Node.js
3024
id: setup-node
3125
uses: actions/setup-node@v4
@@ -35,7 +29,25 @@ jobs:
3529
- name: Docker setup
3630
uses: docker/setup-buildx-action@v3
3731

38-
- name: Install Wasp
32+
- name: Get linked PR branch
33+
id: get-linked-pr-branch
34+
uses: ./.github/actions/get-linked-pr
35+
with:
36+
target-repo: wasp-lang/wasp
37+
38+
- name: Download Wasp build artifacts from linked PR
39+
if: steps.get-linked-pr-branch.outputs.pr-branch
40+
uses: wasp-lang/wasp/.github/actions/fetch-nightly-cli@main
41+
with:
42+
branch: ${{ steps.get-linked-pr-branch.outputs.pr-branch }}
43+
output-dir: ${{ runner.temp }}/wasp-cli
44+
45+
- name: Install Wasp (branch ${{ steps.get-linked-pr-branch.outputs.pr-branch }})
46+
if: ${{ steps.get-linked-pr-branch.outputs.pr-branch }}
47+
run: curl -sSL https://get.wasp.sh/installer.sh | sh -s -- -f ${{ runner.temp }}/wasp-cli/wasp-*.tar.gz
48+
49+
- name: Install Wasp (version ${{ env.WASP_VERSION }})
50+
if: ${{ !steps.get-linked-pr-branch.outputs.pr-branch }}
3951
run: curl -sSL https://get.wasp.sh/installer.sh | sh -s -- -v ${{ env.WASP_VERSION }}
4052

4153
- name: Cache global node modules

0 commit comments

Comments
 (0)