fix: documentation #16
Workflow file for this run
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
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 |