Skip to content

Commit

Permalink
ci: fix packagemanager
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu authored Sep 11, 2024
1 parent 089aa2c commit 0540a11
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
E2E_URL: ${{ github.event_name == 'workflow_dispatch' && 'https://biancafiore.me' || 'http://localhost:4321' }}
jobs:
e2e-tests:
name: E2E tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -18,6 +19,15 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Enable Corepack
run: corepack enable
- name: Get Yarn version from package.json
id: yarn_version
run: |
YARN_VERSION=$(jq -r '.packageManager' package.json | grep -o 'yarn@[0-9]*\.[0-9]*\.[0-9]*')
echo "YARN_VERSION=${YARN_VERSION}" >> $GITHUB_ENV
- name: Install correct Yarn version
run: corepack prepare ${{ env.YARN_VERSION }} --activate
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright Browsers
Expand Down

0 comments on commit 0540a11

Please sign in to comment.