mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-13 08:46:56 +08:00
63 lines
1.1 KiB
YAML
63 lines
1.1 KiB
YAML
name: 🔎 Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- next
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- next
|
|
|
|
jobs:
|
|
svelte-build:
|
|
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
|
|
|
|
- name: Build App
|
|
run: pnpm build
|
|
env:
|
|
SKIP_ENV_VALIDATION: true
|
|
vitest:
|
|
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
|
|
|
|
- name: Run Vitest
|
|
run: pnpm test
|
|
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: ./check-size
|
|
|
|
- name: Check svgs size
|
|
run: pnpm start
|
|
working-directory: ./check-size
|