-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new workflow to separate dco check
The Dco check needs to run on every code change regardless of whether it is a documentation or code change hence seperating it out into a different workflow. Signed-off-by: Arjun Raja Yogidas <arjunry@amazon.com>
- Loading branch information
1 parent
890e0f4
commit f84076c
Showing
2 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Pre-build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# check-dco will check the last 20 commits, but commit ranges | ||
# exclude the start commit in the result, but need that commit | ||
# in order to calculate the range. i.e. HEAD~20..HEAD includes | ||
# 20 commits, but including HEAD it needs 21 commits. | ||
fetch-depth: 21 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.18.10' | ||
- run: wget https://github.com/google/flatbuffers/releases/download/v22.9.29/Linux.flatc.binary.g++-10.zip | ||
- run: unzip Linux.flatc.binary.g++-10.zip | ||
- run: ./scripts/install-check-tools.sh | ||
- run: ./scripts/check-ltag.sh | ||
- run: ./scripts/check-dco.sh | ||
- run: ./scripts/check-lint.sh | ||
- run: PATH=$PATH:$(pwd) ./scripts/check-flatc.sh |