ci: separate workflows

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-05-21 06:11:14 +09:00
parent 63eb8cc6e9
commit 7ed2f3e655
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
2 changed files with 25 additions and 18 deletions

View File

@ -86,21 +86,3 @@ jobs:
- run: pnpm --filter misskey-reversi run build
if: ${{ matrix.workspace == 'backend' }}
- run: pnpm --filter ${{ matrix.workspace }} run typecheck
locale_verify:
needs: [pnpm_install]
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
submodules: true
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4.0.2
with:
node-version-file: '.node-version'
cache: 'pnpm'
- run: corepack enable
- run: pnpm i --frozen-lockfile
- run: cd locales && node verify.js

25
.github/workflows/locale.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Lint
on:
push:
paths:
- locales/**
pull_request:
paths:
- locales/**
jobs:
locale_verify:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
submodules: true
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4.0.2
with:
node-version-file: '.node-version'
cache: 'pnpm'
- run: cd locales && node verify.js