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