mirror of
https://github.com/pheralb/svgl.git
synced 2024-12-05 05:42:35 +08:00
⚙️ Update check & deploy workflow
This commit is contained in:
parent
10ed96ae7b
commit
28531bde76
65
.github/workflows/check-app.yml
vendored
Normal file
65
.github/workflows/check-app.yml
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
name: 🧑🚀 Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- next
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- next
|
||||
|
||||
jobs:
|
||||
vitest:
|
||||
runs-on: ubuntu-latest
|
||||
name: ⚡ Testing with Vitest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm 9
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Run Vitest
|
||||
run: pnpm test
|
||||
|
||||
svgs-size:
|
||||
runs-on: ubuntu-latest
|
||||
name: 📦 SVGs Size
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm 9
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Install utility dependencies
|
||||
run: pnpm install
|
||||
working-directory: ./utils/check-size
|
||||
|
||||
- name: Check svgs size
|
||||
run: pnpm start
|
||||
working-directory: ./utils/check-size
|
||||
|
||||
build-app:
|
||||
runs-on: ubuntu-latest
|
||||
name: 🛠️ Build app
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm 9
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build app
|
||||
run: pnpm build
|
47
.github/workflows/check-vitest-svgs.yml
vendored
47
.github/workflows/check-vitest-svgs.yml
vendored
@ -1,47 +0,0 @@
|
||||
name: 🛠️ Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- next
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- next
|
||||
|
||||
jobs:
|
||||
vitest:
|
||||
runs-on: ubuntu-latest
|
||||
name: Testing with Vitest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup pnpm 8
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Run Vitest
|
||||
run: pnpm test
|
||||
svgs-size:
|
||||
runs-on: ubuntu-latest
|
||||
name: SVGs Size
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup pnpm 8
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
working-directory: ./utils/check-size
|
||||
|
||||
- name: Check svgs size
|
||||
run: pnpm start
|
||||
working-directory: ./utils/check-size
|
4
.github/workflows/deploy-api.yml
vendored
4
.github/workflows/deploy-api.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: 🚀 Deploy API
|
||||
name: 🚀 Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -8,7 +8,7 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
name: Cloudflare Workers
|
||||
name: API - Cloudflare Workers
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
38
.github/workflows/deploy-app.yml
vendored
38
.github/workflows/deploy-app.yml
vendored
@ -1,38 +0,0 @@
|
||||
name: 🚀 Deploy APP
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- next
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20]
|
||||
|
||||
env:
|
||||
SVGL_API_REQUESTS: ${{ secrets.SVGL_API_REQUESTS }}
|
||||
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
|
||||
UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
Loading…
Reference in New Issue
Block a user