Skip to content

fix: documentation

fix: documentation #19

Workflow file for this run

name: Checks
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- master
permissions:
contents: read
packages: read
jobs:
checks:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://npm.pkg.github.com/
scope: '@modyo-dynamic'
- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint package
run: npm run eslint
- name: Stylelint package
run: npm run stylelint
- name: Validate PR commits
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Test package
run: npm run test