-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.33 KB
/
Copy pathnodejs.yml
File metadata and controls
52 lines (52 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Node CI
permissions:
contents: write
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
env:
NAME: "@cloudcmd/fileop"
strategy:
matrix:
node-version:
- 22.x
- 24.x
- 26.x
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
- name: Install Redrun
run: bun install redrun madrun -g --no-save
- name: Install
run: yarn --no-lockfile
- name: Init Madrun
run: madrun --init
- name: Lint
run: redrun fix:lint
- name: Typos
uses: coderaiser/typos.ai@v1.1.8
with:
key: ${{ secrets.TYPOS_AI_KEY }}
- name: Commit fixes
continue-on-error: true
uses: EndBug/add-and-commit@v10
with:
fetch: --force
message: "chore: ${{ env.NAME }}: actions: lint ☘️"
pull: --rebase --autostash
- name: Coverage
run: redrun build coverage report
- name: Coveralls
continue-on-error: true
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}