aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-31 12:07:23 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-31 17:22:18 +0200
commitd895b3be2cffeab3004bc0087a9f3e2b2b790892 (patch)
treeb9ca3f9233910f85be6f528b26e55365707d3afc /.github/workflows
parent53dd7c4e25c03e97f0aacee31849a009ee59cfe1 (diff)
.github/workflows: check commit description format
Check PR commit subjects for the standard format we use "pkg/name: description of the change". Check PR commit bodies for at most 120 characters.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e9c332cf9..0b4119e33 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,6 +15,9 @@ jobs:
uses: actions/checkout@v2
with:
path: gopath/src/github.com/google/syzkaller
+ # This is needed for tools/check-commits.sh
+ ref: ${{ github.event.pull_request.head.sha }}
+ fetch-depth: 100
# Caches everything in .cache dir, in partiuclar we want to cache go-build and golangci-lint stuff.
# For reference see:
# https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action
@@ -25,6 +28,8 @@ jobs:
key: cache
# Run make presubmit_smoke.
- name: run
+ env:
+ GITHUB_PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: gopath/src/github.com/google/syzkaller/.github/workflows/run.sh syz-env make presubmit_smoke
# Upload coverage report to codecov.io. For reference see:
# https://github.com/codecov/codecov-action/blob/master/README.md