feat: scaffold hybrid grpc/rest server architecture #8
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: validate_pr | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
commitlint: | |
name: PR title / description conforms to semantic-release | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: read | |
steps: | |
- uses: actions/setup-node@v4 | |
- run: npm install -g @commitlint/cli @commitlint/config-conventional | |
# Checkout to get the commitlint configuration. | |
- uses: actions/checkout@v4 | |
- run: npx commitlint --verbose <<< $COMMIT_MSG | |
env: | |
COMMIT_MSG: > | |
${{ github.event.pull_request.title }} | |
${{ github.event.pull_request.body }} | |
- uses: actions/github-script@v7 | |
if: failure() | |
with: | |
script: | | |
const script = require('./commitlint.js') | |
await script({ core, context, github }) |