-
Notifications
You must be signed in to change notification settings - Fork 892
52 lines (44 loc) · 1.22 KB
/
Copy pathcheck-javascript-style.yml
File metadata and controls
52 lines (44 loc) · 1.22 KB
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
name: Check Javascript style
on:
push:
branches: [ "master" ]
paths:
- 'web/**/*.js'
- 'web/**/*.jsx'
- 'web/package.json'
- 'web/yarn.lock'
- 'web/.eslintrc.js'
- 'web/.yarnrc.yml'
- '.github/workflows/check-javascript-style.yml'
pull_request:
branches: [ "master" ]
paths:
- 'web/**/*.js'
- 'web/**/*.jsx'
- 'web/package.json'
- 'web/yarn.lock'
- 'web/.eslintrc.js'
- 'web/.yarnrc.yml'
- '.github/workflows/check-javascript-style.yml'
workflow_dispatch:
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
check-javascript-style:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v7
# Corepack reads packageManager from web/package.json and provisions
# exactly that Yarn: a single pinned download, with nothing written
# into the checkout.
- name: Enable Corepack
run: corepack enable
- name: Install Node modules
run: |
cd web
yarn install --immutable
- name: Run the linter
run: |
cd web
yarn run linter