feat(ci): enhance CI pipeline with artifact upload and download steps

This commit is contained in:
taroj1205 2025-06-22 15:34:37 +12:00
parent 1464de3300
commit a9c17d1a7f
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7
2 changed files with 13 additions and 1 deletions

View file

@ -85,6 +85,13 @@ jobs:
- name: Run Build - name: Run Build
run: bunx turbo run build run: bunx turbo run build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build-dist
path: dist/
retention-days: 1
playwright: playwright:
name: Playwright Tests name: Playwright Tests
needs: [check_changes, build] needs: [check_changes, build]
@ -95,6 +102,12 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: build-dist
path: dist/
- name: Setup Bun with Cache - name: Setup Bun with Cache
uses: ./.github/actions/setup-bun-with-cache uses: ./.github/actions/setup-bun-with-cache
with: with:

View file

@ -33,7 +33,6 @@
}, },
"test:playwright": { "test:playwright": {
"cache": true, "cache": true,
"dependsOn": ["build"],
"inputs": ["**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["**/*.{ts,tsx,js,jsx,astro}"],
"outputs": ["playwright-report/**", "test-results/**"] "outputs": ["playwright-report/**", "test-results/**"]
} }