-
-
Notifications
You must be signed in to change notification settings - Fork 44
60 lines (60 loc) · 1.53 KB
/
Copy pathnodejs.yml
File metadata and controls
60 lines (60 loc) · 1.53 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
53
54
55
56
57
58
59
60
name: Node CI
permissions:
contents: write
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
env:
NAME: putout
strategy:
matrix:
node-version:
- 22.x
- 24.x
- 26.x
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install Redrun
run: bun install redrun madrun -g --no-save
- name: Install
run: bun i -f --no-save
- name: Init Madrun
run: madrun --init
- name: Lint
run: redrun fix:lint
- name: Oxlint
run: redrun lint:oxlint
- name: Deno Lint
run: deno 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 coverage report
- name: Coveralls
continue-on-error: true
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: TS Check
run: redrun test:dts