File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Node CI
2+ on :
3+ push :
4+ branches : master
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ env :
9+ NAME : ' @cloudcmd/fileop'
10+ strategy :
11+ matrix :
12+ node-version :
13+ - 18.x
14+ - 20.x
15+ - 21.x
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : oven-sh/setup-bun@v1
19+ with :
20+ bun-version : latest
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ - name : Install Redrun
26+ run : bun install redrun -g --no-save
27+ - name : Install
28+ run : yarn --no-lockfile
29+ - name : Lint
30+ run : redrun fix:lint
31+ - name : Install Rust
32+ run : rustup update
33+ - uses : actions/cache@v3
34+ with :
35+ path : |
36+ ~/.cargo/bin/
37+ ~/.cargo/registry/index/
38+ ~/.cargo/registry/cache/
39+ ~/.cargo/git/db/
40+ target/
41+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
42+ - name : Typos Install
43+ run : which typos || cargo install typos-cli
44+ - name : Typos
45+ run : typos --write-changes
46+ - name : Commit fixes
47+ continue-on-error : true
48+ uses : EndBug/add-and-commit@v9
49+ with :
50+ fetch : --force
51+ message : " chore: ${{ env.NAME }}: actions: lint ☘️"
52+ pull : --rebase --autostash
53+ - name : Coverage
54+ run : redrun coverage:ci report
55+ - name : Coveralls
56+ continue-on-error : true
57+ uses : coverallsapp/github-action@v2
58+ with :
59+ github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments