ci: verify locale data (#13849)

* ci: verify locale data

* ci: separate workflows

* ci: missing installation
This commit is contained in:
Acid Chicken (硫酸鶏) 2024-05-21 10:10:59 +09:00 committed by GitHub
parent 367bf0c8fc
commit 1d4e6393f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 80 additions and 0 deletions

27
.github/workflows/locale.yml vendored Normal file
View file

@ -0,0 +1,27 @@
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: corepack enable
- run: pnpm i --frozen-lockfile
- run: cd locales && node verify.js