From 73fcf22ee200c5d22d4653558c240c2f9ea533d0 Mon Sep 17 00:00:00 2001 From: Jason Gwartz Date: Sat, 2 Mar 2024 17:46:48 +0000 Subject: [PATCH] Install pkl binary in e2e tests --- .github/workflows/test.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f7b429b..59bf68f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v2 + # Install pkl binary - name: Create /tmp/bin and add to PATH run: | mkdir -p "{{ runner.temp }}/bin" && \ @@ -45,6 +46,7 @@ jobs: strategy: matrix: node-version: [18, 20] + pklVersion: ["0.25.0", "0.25.1"] steps: - uses: actions/checkout@v2 @@ -53,5 +55,23 @@ jobs: node-version: ${{ matrix.node-version }} cache: npm + # Install pkl binary + - name: Create /tmp/bin and add to PATH + run: | + mkdir -p "{{ runner.temp }}/bin" && \ + echo "{{ runner.temp }}/bin" >> "$GITHUB_PATH" + + - name: Fetch Pkl binary from GitHub release + uses: dsaltares/fetch-gh-release-asset@master + with: + repo: apple/pkl + version: tags/${{ matrix.pklVersion }} + file: pkl-linux-amd64 + target: "{{ runner.temp }}/bin/pkl" + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Make pkl binary executable + run: chmod +x "{{ runner.temp }}/bin/pkl" + - run: npm install - run: npm run test:e2e