mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🛠️ Update workflows to use Eslint for linting and set `PUBLIC_SVGL_VERSION` env variable
This commit is contained in:
@@ -34,3 +34,5 @@ jobs:
|
||||
|
||||
- name: Build app
|
||||
run: pnpm build
|
||||
env:
|
||||
PUBLIC_SVGL_VERSION: v5
|
||||
|
||||
@@ -11,9 +11,9 @@ on:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
vitest:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
name: ⚡ Testing with Vitest
|
||||
name: ⚙️ Linting
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -23,8 +23,10 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Run Vitest
|
||||
run: pnpm test
|
||||
- name: Run Eslint
|
||||
run: pnpm lint
|
||||
env:
|
||||
PUBLIC_SVGL_VERSION: v5
|
||||
|
||||
svgs-size:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user