WIP: test exactly same CI but only on push #489
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: Testing | |
on: | |
push: | |
jobs: | |
commitlint: | |
# | |
# ensures commit messages follow conventional commits | |
# | |
runs-on: ubuntu-latest | |
steps: | |
# checkout the commits to lint. | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# setup node, needed to lint commits. | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
# Install needed libraries to lint commits. | |
- run: npm install --save-dev @commitlint/{config-conventional@v18.6.0,cli} | |
# Lint the commits. | |
- run: npx commitlint --from=${{ github.event.pull_request.base.sha }} |