mirror of https://github.com/buster-so/buster.git
Merge remote-tracking branch 'origin/staging' into github-oauth-apis
This commit is contained in:
commit
96ed698050
|
@ -44,12 +44,6 @@ jobs:
|
||||||
key: ${{ github.repository }}-pnpm-store
|
key: ${{ github.repository }}-pnpm-store
|
||||||
path: ${{ env.STORE_PATH }}
|
path: ${{ env.STORE_PATH }}
|
||||||
|
|
||||||
- name: Mount node_modules sticky disk
|
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
|
||||||
key: ${{ github.repository }}-pr-${{ github.event.pull_request.number }}-node-modules
|
|
||||||
path: ./node_modules
|
|
||||||
|
|
||||||
- name: Check if lockfile changed
|
- name: Check if lockfile changed
|
||||||
id: lockfile-check
|
id: lockfile-check
|
||||||
run: |
|
run: |
|
||||||
|
@ -64,7 +58,10 @@ jobs:
|
||||||
run: pnpm fetch --frozen-lockfile
|
run: pnpm fetch --frozen-lockfile
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile --prefer-offline
|
run: |
|
||||||
|
# Clean install from pnpm store (already cached in sticky disk)
|
||||||
|
rm -rf node_modules
|
||||||
|
pnpm install --frozen-lockfile --prefer-offline
|
||||||
|
|
||||||
# Build job - runs in parallel
|
# Build job - runs in parallel
|
||||||
build:
|
build:
|
||||||
|
@ -97,20 +94,16 @@ jobs:
|
||||||
key: ${{ github.repository }}-pnpm-store
|
key: ${{ github.repository }}-pnpm-store
|
||||||
path: ${{ env.STORE_PATH }}
|
path: ${{ env.STORE_PATH }}
|
||||||
|
|
||||||
- name: Mount node_modules sticky disk
|
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
|
||||||
key: ${{ github.repository }}-pr-${{ github.event.pull_request.number }}-node-modules
|
|
||||||
path: ./node_modules
|
|
||||||
|
|
||||||
- name: Mount Turbo cache sticky disk
|
- name: Mount Turbo cache sticky disk
|
||||||
uses: useblacksmith/stickydisk@v1
|
uses: useblacksmith/stickydisk@v1
|
||||||
with:
|
with:
|
||||||
key: ${{ github.repository }}-turbo-cache
|
key: ${{ github.repository }}-turbo-cache
|
||||||
path: ./.turbo
|
path: ./.turbo
|
||||||
|
|
||||||
- name: Install dependencies (from sticky disk)
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile --prefer-offline
|
run: |
|
||||||
|
rm -rf node_modules
|
||||||
|
pnpm install --frozen-lockfile --prefer-offline
|
||||||
|
|
||||||
- name: Build all packages (excluding web)
|
- name: Build all packages (excluding web)
|
||||||
run: pnpm build --filter='!@buster-app/web'
|
run: pnpm build --filter='!@buster-app/web'
|
||||||
|
@ -148,20 +141,16 @@ jobs:
|
||||||
key: ${{ github.repository }}-pnpm-store
|
key: ${{ github.repository }}-pnpm-store
|
||||||
path: ${{ env.STORE_PATH }}
|
path: ${{ env.STORE_PATH }}
|
||||||
|
|
||||||
- name: Mount node_modules sticky disk
|
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
|
||||||
key: ${{ github.repository }}-pr-${{ github.event.pull_request.number }}-node-modules
|
|
||||||
path: ./node_modules
|
|
||||||
|
|
||||||
- name: Mount Turbo cache sticky disk
|
- name: Mount Turbo cache sticky disk
|
||||||
uses: useblacksmith/stickydisk@v1
|
uses: useblacksmith/stickydisk@v1
|
||||||
with:
|
with:
|
||||||
key: ${{ github.repository }}-turbo-cache
|
key: ${{ github.repository }}-turbo-cache
|
||||||
path: ./.turbo
|
path: ./.turbo
|
||||||
|
|
||||||
- name: Install dependencies (from sticky disk)
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile --prefer-offline
|
run: |
|
||||||
|
rm -rf node_modules
|
||||||
|
pnpm install --frozen-lockfile --prefer-offline
|
||||||
|
|
||||||
- name: Lint all packages (excluding web)
|
- name: Lint all packages (excluding web)
|
||||||
run: pnpm lint --filter='!@buster-app/web'
|
run: pnpm lint --filter='!@buster-app/web'
|
||||||
|
@ -197,20 +186,16 @@ jobs:
|
||||||
key: ${{ github.repository }}-pnpm-store
|
key: ${{ github.repository }}-pnpm-store
|
||||||
path: ${{ env.STORE_PATH }}
|
path: ${{ env.STORE_PATH }}
|
||||||
|
|
||||||
- name: Mount node_modules sticky disk
|
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
|
||||||
key: ${{ github.repository }}-pr-${{ github.event.pull_request.number }}-node-modules
|
|
||||||
path: ./node_modules
|
|
||||||
|
|
||||||
- name: Mount Turbo cache sticky disk
|
- name: Mount Turbo cache sticky disk
|
||||||
uses: useblacksmith/stickydisk@v1
|
uses: useblacksmith/stickydisk@v1
|
||||||
with:
|
with:
|
||||||
key: ${{ github.repository }}-turbo-cache
|
key: ${{ github.repository }}-turbo-cache
|
||||||
path: ./.turbo
|
path: ./.turbo
|
||||||
|
|
||||||
- name: Install dependencies (from sticky disk)
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile --prefer-offline
|
run: |
|
||||||
|
rm -rf node_modules
|
||||||
|
pnpm install --frozen-lockfile --prefer-offline
|
||||||
|
|
||||||
- name: Run all unit tests (excluding web)
|
- name: Run all unit tests (excluding web)
|
||||||
run: pnpm test:unit --filter='!@buster-app/web'
|
run: pnpm test:unit --filter='!@buster-app/web'
|
||||||
|
|
|
@ -41,12 +41,6 @@ jobs:
|
||||||
key: ${{ github.repository }}-pnpm-store
|
key: ${{ github.repository }}-pnpm-store
|
||||||
path: ${{ env.STORE_PATH }}
|
path: ${{ env.STORE_PATH }}
|
||||||
|
|
||||||
- name: Mount node_modules sticky disk
|
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
|
||||||
key: ${{ github.repository }}-${{ github.ref_name }}-db-node-modules
|
|
||||||
path: ./node_modules
|
|
||||||
|
|
||||||
- name: Mount Turbo cache sticky disk
|
- name: Mount Turbo cache sticky disk
|
||||||
uses: useblacksmith/stickydisk@v1
|
uses: useblacksmith/stickydisk@v1
|
||||||
with:
|
with:
|
||||||
|
@ -54,7 +48,10 @@ jobs:
|
||||||
path: ./.turbo
|
path: ./.turbo
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile --prefer-offline
|
run: |
|
||||||
|
# Remove any existing node_modules to avoid conflicts
|
||||||
|
rm -rf node_modules
|
||||||
|
pnpm install --frozen-lockfile --prefer-offline
|
||||||
|
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
run: pnpm run db:migrate
|
run: pnpm run db:migrate
|
||||||
|
|
|
@ -38,12 +38,6 @@ jobs:
|
||||||
key: ${{ github.repository }}-pnpm-store
|
key: ${{ github.repository }}-pnpm-store
|
||||||
path: ${{ env.STORE_PATH }}
|
path: ${{ env.STORE_PATH }}
|
||||||
|
|
||||||
- name: Mount node_modules sticky disk
|
|
||||||
uses: useblacksmith/stickydisk@v1
|
|
||||||
with:
|
|
||||||
key: ${{ github.repository }}-${{ github.ref_name }}-trigger-node-modules
|
|
||||||
path: ./node_modules
|
|
||||||
|
|
||||||
- name: Mount Turbo cache sticky disk
|
- name: Mount Turbo cache sticky disk
|
||||||
uses: useblacksmith/stickydisk@v1
|
uses: useblacksmith/stickydisk@v1
|
||||||
with:
|
with:
|
||||||
|
@ -51,7 +45,10 @@ jobs:
|
||||||
path: ./.turbo
|
path: ./.turbo
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile --prefer-offline
|
run: |
|
||||||
|
# Remove any existing node_modules to avoid conflicts
|
||||||
|
rm -rf node_modules
|
||||||
|
pnpm install --frozen-lockfile --prefer-offline
|
||||||
|
|
||||||
- name: 🚀 Deploy to ${{ github.ref_name == 'main' && 'Production' || 'Staging' }}
|
- name: 🚀 Deploy to ${{ github.ref_name == 'main' && 'Production' || 'Staging' }}
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue