mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
chore(ci): add artifact upload and download steps in CI pipeline for improved build process
This commit is contained in:
parent
824df2009e
commit
1e0b6821f3
2 changed files with 17 additions and 10 deletions
19
.github/workflows/ci-pipeline.yml
vendored
19
.github/workflows/ci-pipeline.yml
vendored
|
@ -171,6 +171,13 @@ jobs:
|
|||
- name: Build project
|
||||
run: pnpm exec turbo run build
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
retention-days: 1
|
||||
|
||||
playwright:
|
||||
name: Playwright Tests
|
||||
needs: [check_changes, setup, build]
|
||||
|
@ -179,12 +186,18 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
|
||||
- name: Restore Turborepo Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .turbo
|
||||
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-turbo-build-
|
||||
key: ${{ runner.os }}-turbo-playwright-${{ github.sha }}
|
||||
restore-keys: ${{ runner.os }}-turbo-playwright-
|
||||
|
||||
- name: Restore node_modules cache
|
||||
id: cache
|
||||
|
@ -218,7 +231,7 @@ jobs:
|
|||
restore-keys: ${{ runner.os }}-playwright-browsers-
|
||||
|
||||
- name: Install Playwright Browsers
|
||||
run: pnpm exec playwright install --with-deps
|
||||
run: pnpm exec playwright install --with-deps firefox
|
||||
|
||||
- name: Run Playwright Tests (4 Shards)
|
||||
run: pnpm exec turbo run test:e2e:all
|
||||
|
|
|
@ -59,13 +59,7 @@
|
|||
},
|
||||
"test:e2e:all": {
|
||||
"cache": true,
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"test:e2e:shard1",
|
||||
"test:e2e:shard2",
|
||||
"test:e2e:shard3",
|
||||
"test:e2e:shard4"
|
||||
],
|
||||
"dependsOn": ["test:e2e:shard1", "test:e2e:shard2", "test:e2e:shard3", "test:e2e:shard4"],
|
||||
"inputs": ["src/**/*"],
|
||||
"outputs": ["playwright-report/**", "test-results/**"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue