mirror of
https://github.com/google/blockly.git
synced 2026-01-22 16:27:09 +01:00
28 lines
733 B
YAML
28 lines
733 B
YAML
name: test-clang-format
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
clang-formatter:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: DoozyX/clang-format-lint-action@v0.12
|
|
with:
|
|
source: 'core'
|
|
extensions: 'js'
|
|
clangFormatVersion: 12
|
|
style: Google
|
|
|
|
- uses: actions/github-script@v5
|
|
if: failure()
|
|
with:
|
|
script: |
|
|
console.log(context.issue.number)
|
|
github.rest.issues.createComment({
|
|
issue_number: context.issue.number,
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
body: 'It looks like some of your files have not been formatted properly. Please run `npm run format`.'
|
|
})
|