Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use setup-pkl action #17

Merged
merged 3 commits into from
Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading