mirror of
https://github.com/bitwarden/browser
synced 2026-02-02 01:33:22 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Locales lint for Crowdin
|
|
|
|
on:
|
|
pull_request:
|
|
branches-ignore:
|
|
- 'l10n_master'
|
|
- 'cf-pages'
|
|
paths:
|
|
- '**/messages.json'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Checkout base branch repo
|
|
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
with:
|
|
ref: ${{ github.event.pull_request.base.sha }}
|
|
path: base
|
|
persist-credentials: false
|
|
- name: Set up pnpm
|
|
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
|
|
with:
|
|
version: 10
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Compare
|
|
run: |
|
|
if pnpm run test:locales; then
|
|
echo "Lint check successful."
|
|
else
|
|
echo "Lint check failed."
|
|
exit 1
|
|
fi
|