Skip to content

Commit

Permalink
Use setup-pkl action
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongwartz committed Mar 10, 2024
1 parent b07c16c commit 083f3d5
Showing 1 changed file with 9 additions and 48 deletions.
57 changes: 9 additions & 48 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v2

# 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
- name: Install pkl
uses: pkl-community/setup-pkl@v0
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"
pkl-version: ${{ matrix.pklVersion }}

- name: Run tests
run: |
Expand All @@ -50,23 +37,10 @@ jobs:
steps:
- uses: actions/checkout@v2

# 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
- name: Install pkl
uses: pkl-community/setup-pkl@v0
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"
pkl-version: ${{ matrix.pklVersion }}

- name: Run tests
run: |
Expand All @@ -87,23 +61,10 @@ 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
- name: Install pkl
uses: pkl-community/setup-pkl@v0
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"
pkl-version: ${{ matrix.pklVersion }}

- run: npm install
- run: npm run test:e2e

0 comments on commit 083f3d5

Please sign in to comment.