Skip to content

Commit

Permalink
ci: use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Apr 17, 2024
1 parent 216ddbd commit 2ceafab
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/e2eForPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,25 @@ jobs:
if: needs['check-changed-files'].outputs.CANT_PASS_WITHOUT_TESTS == 'true'
steps:
- uses: actions/checkout@v3

- uses: actions/checkout@v4
- name: 'Install pnpm'
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371
with:
version: 8
- name: Install node
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn install
run: pnpm install
- name: Install Playwright
run: npx playwright install
run: pnpm exec playwright install
- name: Extract Branch Name
id: extract-branch
run: |
echo SUBDOMAIN=mock-$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | perl -pe 's/[^a-zA-Z0-9]+/-/g and s/-+$//g' | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
- name: Run test
run: yarn test:mock-e2e
run: pnpm test:mock-e2e
env:
TEST_DOMAIN: 'https://${{steps.extract-branch.outputs.SUBDOMAIN}}.${{secrets.FPJS_CI_DOMAIN}}'
INTEGRATION_PATH: ${{secrets.INTEGRATION_PATH}}
Expand Down

0 comments on commit 2ceafab

Please sign in to comment.