Skip to content

Commit

Permalink
fix: 🐛 seperating job
Browse files Browse the repository at this point in the history
  • Loading branch information
Loonz806 committed Dec 19, 2024
1 parent 9c4d030 commit 8e2db38
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/githubactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ jobs:
run: npm run build
- name: Playwright install
run: npx playwright install --with-deps
- name: Install Percy CLI
run: npm install --save-dev @percy/cli
- name: Run Percy Snapshot
run: npx percy snapshot dist/
- name: Run e2e
run: npm run e2e:test
- uses: actions/upload-artifact@v4
Expand All @@ -105,6 +101,24 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
percy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
needs: [build]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v4
with:
node-version: '14'
- run: npm install --save-dev @percy/cli
- run: npx percy snapshot dist/ # or any directory such as public/
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
sonarcloud:
Expand Down

0 comments on commit 8e2db38

Please sign in to comment.