Skip to content

chore(deps): update dependency @mizdra/eslint-config-mizdra to v5 #245

chore(deps): update dependency @mizdra/eslint-config-mizdra to v5

chore(deps): update dependency @mizdra/eslint-config-mizdra to v5 #245

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- run: npm install
- run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- run: npm install
- run: npm run build
test:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install
- run: npm run test
check-api-docs-for-missed-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- run: npm install
- run: npm run update-api-docs
- name: Check for differences
run: |
set +e
git diff --exit-code --quiet
if [ $? -eq 0 ]; then
echo "No differences found."
else
echo "API docs are not updated. Please run 'npm run update-api-docs' and commit the changes."
exit 1
fi