Skip to content

Fix section header type #10

Fix section header type

Fix section header type #10

Workflow file for this run

name: Node.js CI
on:
pull_request:
branches: [master]
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/ci-pull-request.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run lint
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: build
path: build
code_ql:
runs-on: ubuntu-latest
name: CodeQL
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
needs: build
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup MediaWiki instance using Docker for integration tests
run: npm run setuplocalwiki
- run: npm ci
- uses: actions/download-artifact@v3
- run: npm run test:localwiki && npm run test:nowiki