File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-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+ - uses : oven-sh/setup-bun@v2
28+ - uses : actions/setup-node@v4
29+ with :
30+ node-version : ' 20.x'
31+ registry-url : ' https://registry.npmjs.org'
32+
33+ - name : Get yarn cache directory path
34+ id : yarn-cache-dir-path
35+ run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
36+
37+ - name : Install Dependency
38+ env :
39+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ NODE_OPTIONS : ' --max_old_space_size=4096'
41+ run : bun install --frozen-lockfile
42+
43+ - name : Run lint
44+ env :
45+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ NODE_OPTIONS : ' --max_old_space_size=4096'
47+ run : bun lint
You can’t perform that action at this time.
0 commit comments