@@ -48,73 +48,15 @@ jobs:
4848 runs-on : ubuntu-18.04
4949 timeout-minutes : 5
5050
51- defaults :
52- run :
53- working-directory : src/github.com/containerd/containerd
54-
5551 steps :
56- #
57- # Install Go
58- #
59- - name : Install Go
60- uses : actions/setup-go@v1
61- with :
62- go-version : ' 1.15.2'
63-
64- #
65- # Checkout repos
66- #
67- - name : Checkout this repo
68- uses : actions/checkout@v2
52+ - uses : actions/checkout@v2
6953 with :
7054 path : src/github.com/containerd/containerd
7155 fetch-depth : 100
7256
73- - name : Checkout project repo
74- uses : actions/checkout@v2
57+ - uses : containerd/project-checks@v1
7558 with :
76- repository : containerd/project
77- path : src/github.com/containerd/project
78-
79- - name : Set env
80- shell : bash
81- run : |
82- echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
83- echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
84-
85- #
86- # Go get dependencies
87- #
88- - name : Install dependencies
89- env :
90- GO111MODULE : off
91- run : |
92- go get -u github.com/vbatts/git-validation
93- go get -u github.com/kunalkushwaha/ltag
94- go get -u github.com/LK4D4/vndr
95-
96- #
97- # DCO / File headers / Vendor directory validation
98- #
99- - name : DCO
100- env :
101- GITHUB_COMMIT_URL : ${{ github.event.pull_request.commits_url }}
102- DCO_VERBOSITY : " -q"
103- DCO_RANGE : " "
104- run : |
105- set -x
106- if [ -z "${GITHUB_COMMIT_URL}" ]; then
107- DCO_RANGE=$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})
108- else
109- DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha + "..HEAD"')
110- fi
111- ../project/script/validate/dco
112-
113- - name : Headers
114- run : ../project/script/validate/fileheader ../project/
115-
116- - name : Vendor
117- run : ../project/script/validate/vendor
59+ working-directory : src/github.com/containerd/containerd
11860
11961 #
12062 # Protobuf checks
0 commit comments