mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
PR-URL: https://github.com/nodejs/node/pull/31504 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build
|
|
run: NODE=$(which node) make doc-only
|
|
- uses: actions/upload-artifact@v1
|
|
with:
|
|
name: docs
|
|
path: out/doc
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Environment Information
|
|
run: npx envinfo
|
|
- name: Build
|
|
run: ./configure && make -j2
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Environment Information
|
|
run: npx envinfo
|
|
- name: Install deps
|
|
run: choco install nasm
|
|
- name: Build
|
|
run: ./vcbuild.bat
|
|
build-macOS:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Environment Information
|
|
run: npx envinfo
|
|
- name: Build
|
|
run: ./configure && make -j8
|
|
lint-addon-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 10
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.x
|
|
- name: Lint addon docs
|
|
run: NODE=$(which node) make lint-addon-docs
|
|
lint-cpp:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Lint C/C++ files
|
|
run: make lint-cpp
|
|
lint-md:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 10
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.x
|
|
- name: Lint docs
|
|
run: NODE=$(which node) make lint-md
|
|
lint-js:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js 10
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10.x
|
|
- name: Lint JavaScript files
|
|
run: NODE=$(which node) make lint-js
|