GeezerVison is showing github.com — build: add GitHub actions to run linters · nodejs/node@0379c31
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/CI.yml +36Lines changed: 36 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
41 | 41 | run: npx envinfo |
42 | 42 | - name: Build |
43 | 43 | run: ./configure && make -j8 |
| 44 | + lint-addon-docs: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - uses: actions/checkout@v2 |
| 48 | + - name: Use Node.js ${{ matrix.node-version }} |
| 49 | + uses: actions/setup-node@v1 |
| 50 | + with: |
| 51 | + node-version: 10.x |
| 52 | + - name: Lint addon docs |
| 53 | + run: NODE=$(which node) make lint-addon-docs |
| 54 | + lint-cpp: |
| 55 | + runs-on: ubuntu-latest |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v2 |
| 58 | + - name: Lint C/C++ files |
| 59 | + run: make lint-cpp |
| 60 | + lint-md: |
| 61 | + runs-on: ubuntu-latest |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v2 |
| 64 | + - name: Use Node.js ${{ matrix.node-version }} |
| 65 | + uses: actions/setup-node@v1 |
| 66 | + with: |
| 67 | + node-version: 10.x |
| 68 | + - name: Lint docs |
| 69 | + run: NODE=$(which node) make lint-md |
| 70 | + lint-js: |
| 71 | + runs-on: ubuntu-latest |
| 72 | + steps: |
| 73 | + - uses: actions/checkout@v2 |
| 74 | + - name: Use Node.js ${{ matrix.node-version }} |
| 75 | + uses: actions/setup-node@v1 |
| 76 | + with: |
| 77 | + node-version: 10.x |
| 78 | + - name: Lint JavaScript files |
| 79 | + run: NODE=$(which node) make lint-js |