main #21
1 changed files with 6 additions and 3 deletions
|
@ -14,6 +14,7 @@ env:
|
|||
|
||||
jobs:
|
||||
install:
|
||||
name: Prepare environment
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
@ -52,12 +53,13 @@ jobs:
|
|||
run: npm run build
|
||||
|
||||
- name: Save build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: dist
|
||||
|
||||
unit-tests:
|
||||
name: Run unit tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: install
|
||||
steps:
|
||||
|
@ -71,7 +73,7 @@ jobs:
|
|||
cache: 'npm'
|
||||
|
||||
- name: Download build artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: dist
|
||||
|
@ -80,6 +82,7 @@ jobs:
|
|||
run: npm run test:unit
|
||||
|
||||
cypress-tests:
|
||||
name: Run E2E tests
|
||||
runs-on: ubuntu-latest
|
||||
needs: install
|
||||
strategy:
|
||||
|
@ -97,7 +100,7 @@ jobs:
|
|||
cache: 'npm'
|
||||
|
||||
- name: Download build artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: dist
|
||||
|
|
Loading…
Add table
Reference in a new issue