Skip to content

Bump the dev-dependencies group with 2 updates #178

Bump the dev-dependencies group with 2 updates

Bump the dev-dependencies group with 2 updates #178

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm test
env:
CI: true
- run: npm run cover
- name: Collect coverage
if: success() && startsWith(matrix.node-version, '18')
run: |
mkdir -p coverage && npm run cover:report --silent -- --reporter=text-lcov > ./coverage/lcov.info
- name: Coveralls
uses: coverallsapp/github-action@master
if: success() && startsWith(matrix.node-version, '18')
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
site:
needs:
- build
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm ci
- run: bash ./gh-pages.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: .gh-pages
single-commit: true