Skip to content

Commit

Permalink
Install pkl binary in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongwartz committed Mar 2, 2024
1 parent 430259c commit 73fcf22
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" && \
Expand Down Expand Up @@ -45,6 +46,7 @@ jobs:
strategy:
matrix:
node-version: [18, 20]
pklVersion: ["0.25.0", "0.25.1"]

steps:
- uses: actions/checkout@v2
Expand All @@ -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

0 comments on commit 73fcf22

Please sign in to comment.