mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 20:43:48 +00:00
ci: replace certificate caching with artifact uploads
This commit is contained in:
+17
-16
@@ -25,11 +25,12 @@ jobs:
|
|||||||
mkcert -install
|
mkcert -install
|
||||||
mkcert -cert-file certs/localhost.pem -key-file certs/localhost-key.pem localhost 127.0.0.1 ::1
|
mkcert -cert-file certs/localhost.pem -key-file certs/localhost-key.pem localhost 127.0.0.1 ::1
|
||||||
|
|
||||||
- name: Cache certificates
|
- name: Upload certificates
|
||||||
uses: actions/cache/save@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: certs
|
name: ssl-certs
|
||||||
key: certs-${{ runner.os }}-${{ github.sha }}
|
path: certs/
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
name: Frontend CI
|
name: Frontend CI
|
||||||
@@ -42,11 +43,11 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: oven-sh/setup-bun@v2
|
- uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Restore certificates
|
- name: Download certificates
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: certs
|
name: ssl-certs
|
||||||
key: certs-${{ runner.os }}-${{ github.sha }}
|
path: certs/
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
@@ -87,11 +88,11 @@ jobs:
|
|||||||
enable-cache: true
|
enable-cache: true
|
||||||
cache-dependency-glob: "backend/uv.lock"
|
cache-dependency-glob: "backend/uv.lock"
|
||||||
|
|
||||||
- name: Restore certificates
|
- name: Download certificates
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: certs
|
name: ssl-certs
|
||||||
key: certs-${{ runner.os }}-${{ github.sha }}
|
path: certs/
|
||||||
|
|
||||||
- name: Lint & Test
|
- name: Lint & Test
|
||||||
run: |
|
run: |
|
||||||
@@ -116,11 +117,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Restore Certificates
|
- name: Download Certificates
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: certs
|
name: ssl-certs
|
||||||
key: certs-${{ runner.os }}-${{ github.sha }}
|
path: certs/
|
||||||
|
|
||||||
- name: Setup Tools
|
- name: Setup Tools
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: astral-sh/setup-uv@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user