chore(deps): update commitlint to v18 #1175
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- "renovate/**" | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version-file: ".nvmrc" | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: npm install --no-optional --no-audit --no-fund --progress=false | |
# Test Git hooks in CI, to make sure script upgrades do not break them. | |
- run: npm run prepare | |
# Test commit message validation in CI. | |
- run: git log -1 --pretty=%B >> latest.log && ./.git/hooks/commit-msg latest.log | |
- run: npm run test:ci |