chore: Bump yaml from 2.5.1 to 2.6.0 #1080
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
on: [pull_request] | |
name: Check | |
jobs: | |
check: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
npm ci | |
npm test | |
conventional-commits: | |
name: Semantic Pull Request | |
runs-on: ubuntu-latest | |
steps: | |
- name: validate | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
// See https://gist.github.com/marcojahn/482410b728c31b221b70ea6d2c433f0c#file-conventional-commit-regex-md | |
const regex = /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)/g; | |
const pr = context.payload.pull_request; | |
const title = pr.title; | |
if (title.match(regex) == null) { | |
throw `PR title "${title}"" does not match conventional commits from https://www.conventionalcommits.org/en/v1.0.0/` | |
} |