Skip to content

feat(component): new builder paging control component #69

feat(component): new builder paging control component

feat(component): new builder paging control component #69

Workflow file for this run

# This workflow will do a clean installation of node dependencies,
# cache/restore them, build the source code, verify the code conformance,
# and run tests across different versions of node.
# For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: PR Build
on:
pull_request:
branches: ['release', 'rc/**', 'feature/**']
push:
branches: ['rc/**']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- run: npm run format:verify
- run: npm run lint
- run: npm run test