From 083f3d514022693629012504fc9efb08b17ac07f Mon Sep 17 00:00:00 2001 From: Jason Gwartz Date: Sun, 10 Mar 2024 16:34:37 +0000 Subject: [PATCH] Use setup-pkl action --- .github/workflows/test.yaml | 57 ++++++------------------------------- 1 file changed, 9 insertions(+), 48 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 530135b..f7c83a1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: | @@ -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: | @@ -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