ci: split browser e2e into separate job
This commit is contained in:
+23
-15
@@ -18,21 +18,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: '10.0'
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: npm
|
||||
|
||||
- name: Cache Playwright browsers
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-playwright-
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore TaxBaik.sln
|
||||
|
||||
@@ -165,6 +150,29 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
browser-e2e:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-and-deploy
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: npm
|
||||
|
||||
- name: Cache Playwright browsers
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-playwright-
|
||||
|
||||
- name: Install Playwright dependencies
|
||||
run: |
|
||||
set -e
|
||||
|
||||
Reference in New Issue
Block a user