svgl/.github/workflows/check-app.yml

46 lines
822 B
YAML
Raw Normal View History

name: ⚙️ Check app
2023-03-15 19:23:25 +08:00
on:
push:
branches:
- main
2023-12-12 09:03:06 +08:00
- next
2023-03-15 19:23:25 +08:00
pull_request:
branches:
- main
2023-12-12 09:03:06 +08:00
- next
2023-03-15 19:23:25 +08:00
jobs:
2023-12-17 04:11:43 +08:00
vitest:
2023-04-14 19:37:45 +08:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-12-14 08:27:50 +08:00
- name: Setup pnpm 8
uses: pnpm/action-setup@v2
2023-04-14 19:37:45 +08:00
with:
2023-12-14 08:27:50 +08:00
version: 8
2023-04-14 19:37:45 +08:00
- name: Install dependencies
2023-12-14 08:27:50 +08:00
run: pnpm install
2023-04-14 19:37:45 +08:00
- name: Run Vitest
2023-12-14 08:27:50 +08:00
run: pnpm test
2023-12-17 04:11:43 +08:00
svgs-size:
runs-on: ubuntu-latest
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
2023-12-17 04:11:43 +08:00
- name: Check svgs size
run: pnpm start
working-directory: ./utils/check-size