Update Mocha to version 10 #216
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
test-full: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- run: npm test | |
env: | |
MEDIAWIKI_USERNAME: ${{ secrets.MEDIAWIKI_USERNAME }} | |
MEDIAWIKI_PASSWORD: ${{ secrets.MEDIAWIKI_PASSWORD }} | |
test-most: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run test:unit | |
- run: npm run test:node | |
env: | |
MEDIAWIKI_USERNAME: ${{ secrets.MEDIAWIKI_USERNAME }} | |
MEDIAWIKI_PASSWORD: ${{ secrets.MEDIAWIKI_PASSWORD }} | |
- run: npm run test:readme | |
# don’t run test:lint in Node 16 – no point running it twice | |
# don’t run test:browser in Node 16 – needs Node fetch() (see #23) | |
test-package-lock: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm i --package-lock-only | |
- run: git diff --exit-code |