Fix useRemarkSync
param type
#205
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, windows-latest, macos-latest] | |
node-version: [12, 14, 16] | |
name: '${{ matrix.platform }}: node.js ${{ matrix.node-version }}' | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Begin CI... | |
uses: actions/checkout@v3 | |
- name: Use Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Use cached node_modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: nodeModules-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
nodeModules- | |
# TODO: Remove when CI supports new peer dep behavior | |
# https://github.com/remarkjs/react-remark/pull/74#issuecomment-1951415731 | |
- name: Set legacy-peer-deps=true | |
run: npm config set legacy-peer-deps=true | |
- name: Install dependencies | |
run: npm ci | |
env: | |
CI: true | |
- name: Lint | |
if: ${{ matrix.platform != 'windows-latest' }} | |
run: npm run lint | |
env: | |
CI: true | |
- name: Test | |
run: npm test -- --ci --coverage --maxWorkers=2 | |
env: | |
CI: true | |
- name: Build | |
run: npm run build | |
env: | |
CI: true |