Skip to content

Added a new method to read a specific page number #1127

Added a new method to read a specific page number

Added a new method to read a specific page number #1127

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
steps:
- name: ⏬ Checkout code
uses: actions/checkout@v4
- name: πŸ”’ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: ⏬ Install
run: |
npm install
- name: ✨ Lint
run: |
npm run lint
- name: πŸ”¨ Build
run: |
npm run build
- name: πŸ§ͺ Test
run: |
npm test -- --coverage
env:
FORCE_COLOR: 1
JEST_IMAGE_SNAPSHOT_TRACK_OBSOLETE: 1
- name: πŸ“Έ Upload failed screenshot tests
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: tests/__image_snapshots__/__diff_output__/*
- name: πŸ“ˆ Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
github-token: ${{ secrets.github_token }}
- name: πŸ“¦ Publish
if: ${{ github.ref == 'refs/heads/main' }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
npm run trypublish
env:
CI: true
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}