File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments