Skip to content

Commit 5d2dd66

Browse files
authored
Merge pull request #142 from samuelkarp/update-project-checks
ci: migrate to project-checks action
2 parents f78fdb2 + 4d51675 commit 5d2dd66

File tree

9 files changed

+10
-204
lines changed

9 files changed

+10
-204
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,18 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
1110
build:
12-
name: Project CI
11+
name: CI
1312
runs-on: ubuntu-22.04
1413
timeout-minutes: 5
1514
steps:
1615

17-
- name: Set up Go 1.19
18-
uses: actions/setup-go@v3
19-
with:
20-
go-version: 1.19
21-
id: go
22-
23-
- name: Setup Go binary path
24-
shell: bash
25-
run: |
26-
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
27-
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
28-
2916
- name: Check out code
30-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
3118
with:
3219
path: src/github.com/containerd/project
3320
fetch-depth: 25
3421

35-
- name: Install dependencies
36-
env:
37-
GO111MODULE: on
38-
run: |
39-
go install github.com/vbatts/git-validation@latest
40-
go install github.com/kunalkushwaha/ltag@latest
41-
42-
- name: Check DCO/whitespace/commit message
43-
env:
44-
GITHUB_COMMIT_URL: ${{ github.event.pull_request.commits_url }}
45-
DCO_VERBOSITY: "-q"
46-
DCO_RANGE: ""
47-
working-directory: src/github.com/containerd/project
48-
run: |
49-
if [ -z "${GITHUB_COMMIT_URL}" ]; then
50-
DCO_RANGE=$(jq -r '.before +".."+ .after' ${GITHUB_EVENT_PATH})
51-
else
52-
DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha +".."+ .[-1].sha')
53-
fi
54-
script/validate/dco
55-
56-
- name: Check file headers
57-
run: script/validate/fileheader
58-
working-directory: src/github.com/containerd/project
22+
- uses: containerd/[email protected]
23+
with:
24+
working-directory: src/github.com/containerd/project

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/containerd/project
2+
3+
go 1.23.1
4+
5+
// required for project-checks action

script/validate/dco

Lines changed: 0 additions & 32 deletions
This file was deleted.

script/validate/fileheader

Lines changed: 0 additions & 28 deletions
This file was deleted.

script/validate/template/bash.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

script/validate/template/dockerfile.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

script/validate/template/go.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

script/validate/template/makefile.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

script/validate/vendor

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)