fix: correct pagination totalRecord calculation after applying filters #37
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: '*' | |
jobs: | |
test_pr: | |
name: Test PR | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Setup node, Use Node 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Install dependencies | |
run: npm ci | |
- name: Test | |
run: npm test --if-present -- --runInBand --forceExit | |
# release: | |
# name: Release | |
# runs-on: ubuntu-latest | |
# if: ${{ github.ref == 'refs/heads/main' }} | |
# needs: [test_pr] | |
# steps: | |
# - name: Checkout branch | |
# uses: actions/checkout@v3 | |
# - name: Use Node.js ${{ matrix.node-version }} | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# - name: Install dependencies | |
# run: npm ci | |
# - name: Semantic release | |
# run: npm run semantic-release | |
# env: | |
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |