-
Notifications
You must be signed in to change notification settings - Fork 79
53 lines (42 loc) · 1.17 KB
/
lint_translation_files.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: "Lint Translation Files"
on:
# Trigger the workflow on pull request,
# but only for the integration branch
pull_request:
branches:
- integration
jobs:
run-linters-in-webapp:
name: Run linters in webapp
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/webapp/
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/[email protected]
with:
version: 6.26.1
- name: Install pnpm dependencies
run: pnpm install
- name: Run linters
run: npx eslint './public/locales/**/*.json'
run-linters-in-api:
name: Run linters in api
runs-on: ubuntu-20.04
defaults:
run:
working-directory: packages/api/
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies for Node.js server
run: npm install
- name: Run linters
run: npx eslint './src/jobs/locales/**/*.json' './src/templates/locales/**/*.json'