Skip to content

Commit e1ad238

Browse files
authored
Create lint.yml
1 parent 5b52a29 commit e1ad238

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/lint.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
# Cancel a currently running workflow from the same PR/branch/tag
12+
# when a new workflow is triggered
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
lint:
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
matrix:
23+
node-version: [20.x]
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
lfs: true
29+
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version: '20.x'
33+
registry-url: 'https://registry.npmjs.org'
34+
35+
- name: Get yarn cache directory path
36+
id: yarn-cache-dir-path
37+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
38+
39+
- name: Install Dependency
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
NODE_OPTIONS: '--max_old_space_size=4096'
43+
run: bun install --frozen-lockfile
44+
45+
- name: Run lint
46+
env:
47+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NODE_OPTIONS: '--max_old_space_size=4096'
49+
run: bun lint

0 commit comments

Comments
 (0)