Skip to content

Commit

Permalink
chore(ci): update code-quality jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Oct 24, 2023
1 parent 0b2c1ad commit 6e1862a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
Expand All @@ -18,7 +18,28 @@ jobs:
- run: npm run ts:check
- run: npm run build

# e2e tests with Playwright
- name: Cache build folder
id: cache-build
uses: actions/cache/save@v3
with:
path: ${{ github.workspace }}/build
key: ${{ github.sha }}-build
tests:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache/restore@v3
id: restore-build
with:
path: ${{ github.workspace }}/build
key: ${{ github.sha }}-build
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm i
- run: npx playwright install --with-deps
- run: npx playwright test
- uses: actions/upload-artifact@v3
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/playwright.yml

This file was deleted.

0 comments on commit 6e1862a

Please sign in to comment.