build(deps-dev): bump js-yaml from 4.1.0 to 4.1.1 #45
This file contains hidden or 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: commitlint | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| tests: | |
| name: Run commitlint | |
| timeout-minutes: 15 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 2 | |
| - name: Fetch main branch | |
| run: git fetch --no-tags --depth=1 origin main | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16.x.x | |
| - name: Install dependencies | |
| run: npm install | |
| - name: commitlint | |
| run: | |
| npx commitlint --from ${{ github.event.pull_request.base.sha }} --to | |
| ${{ github.event.pull_request.head.sha }} --verbose |