Skip to content

ci: bump peaceiris/actions-mdbook from 1.2.0 to 2.0.0 #1093

ci: bump peaceiris/actions-mdbook from 1.2.0 to 2.0.0

ci: bump peaceiris/actions-mdbook from 1.2.0 to 2.0.0 #1093

Workflow file for this run

name: 'Test'
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- 'ubuntu-latest'
- 'ubuntu-20.04'
- 'macos-latest'
- 'windows-latest'
steps:
- uses: actions/checkout@v4
- name: Read .nvmrc
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
- run: npm ci
- name: Run prettier
if: ${{ startsWith(matrix.os, 'ubuntu-latest') }}
run: npm run format:check
- name: Run eslint
if: ${{ startsWith(matrix.os, 'ubuntu-latest') }}
run: npm run lint
- name: Run ncc
if: ${{ startsWith(matrix.os, 'ubuntu-latest') }}
run: npm run build
- run: npm test
- name: Upload test coverage as artifact
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.os }}
path: coverage
- uses: codecov/codecov-action@v4