Skip to content

Commit 7307e95

Browse files
authored
chore: added lint GitHub workflow (#174)
1 parent 8d613dd commit 7307e95

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
statuses: write
11+
deployments: write
12+
pull-requests: write
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
path: src
21+
- name: Set up depot-tools
22+
uses: newkdev/setup-depot-tools@v1.0.1
23+
- name: Sync gclient workspace
24+
run: |
25+
gclient config --unmanaged src --name src
26+
gclient sync --no-history
27+
- name: Run linter
28+
run: |
29+
cd src
30+
NODE_OPTIONS="--max-old-space-size=8192" npm run lint -- --fix=false

0 commit comments

Comments
 (0)