diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 47b59836300086..006b7ebdd30c01 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 13 uses: actions/setup-node@v1 with: node-version: 13.x @@ -19,7 +19,7 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 13 uses: actions/setup-node@v1 with: node-version: 13.x @@ -33,7 +33,7 @@ jobs: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 13 uses: actions/setup-node@v1 with: node-version: 13.x @@ -41,3 +41,39 @@ jobs: 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