Skip to content

Commit c906010

Browse files
committed
Add containerd project checks to CI
Adds containerd/project-checks@v1.1.0 to CI workflow. Signed-off-by: Austin Vazquez <macedonv@amazon.com>
1 parent 3e546aa commit c906010

1 file changed

Lines changed: 3 additions & 36 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -42,43 +42,10 @@ jobs:
4242
path: src/github.com/containerd/cgroups
4343
fetch-depth: 25
4444

45-
- name: Checkout common project repo
46-
uses: actions/checkout@v3
45+
- name: Project checks
46+
uses: containerd/project-checks@v1.1.0
4747
with:
48-
repository: containerd/project
49-
path: src/github.com/containerd/project
50-
51-
#
52-
# Go get dependencies
53-
#
54-
- name: Install dependencies
55-
env:
56-
GO111MODULE: off
57-
run: |
58-
go get -u github.com/vbatts/git-validation
59-
go get -u github.com/kunalkushwaha/ltag
60-
61-
#
62-
# DCO / File headers
63-
#
64-
- name: DCO
65-
env:
66-
GITHUB_COMMIT_URL: ${{ github.event.pull_request.commits_url }}
67-
DCO_VERBOSITY: "-q"
68-
DCO_RANGE: ""
69-
working-directory: src/github.com/containerd/cgroups
70-
run: |
71-
set -x
72-
if [ -z "${GITHUB_COMMIT_URL}" ]; then
73-
DCO_RANGE=$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})
74-
else
75-
DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha +".."+ .[-1].sha')
76-
fi
77-
../project/script/validate/dco
78-
79-
- name: Headers
80-
run: ../project/script/validate/fileheader ../project/
81-
working-directory: src/github.com/containerd/cgroups
48+
working-directory: src/github.com/containerd/cgroups
8249

8350
test:
8451
name: Test cgroups

0 commit comments

Comments
 (0)