summaryrefslogtreecommitdiff
path: root/.github/workflows/locale.yml
blob: cee4c27ceb43208650e8895a17da3c2a09ea5ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Lint

on:
  push:
    paths:
      - locales/**
      - .github/workflows/locale.yml
  pull_request:
    paths:
      - locales/**
      - .github/workflows/locale.yml
jobs:
  locale_verify:
    runs-on: ubuntu-latest
    continue-on-error: true
    steps:
    - uses: actions/checkout@v4.2.2
      with:
        fetch-depth: 0
        submodules: true
    - name: Setup pnpm
      uses: pnpm/action-setup@v4.1.0
    - uses: actions/setup-node@v4.3.0
      with:
        node-version-file: '.node-version'
        cache: 'pnpm'
    - run: pnpm i --frozen-lockfile
    - run: cd locales && node verify.js