Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add containerd project checks to CI #69

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 4 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,14 @@ jobs:
path: src/github.com/containerd/console
fetch-depth: 25

- name: Checkout project
uses: actions/checkout@v3
with:
repository: containerd/project
path: src/github.com/containerd/project

- name: Install dependencies
run: |
go install github.com/vbatts/git-validation@latest
go install github.com/kunalkushwaha/ltag@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1

- name: Check DCO/whitespace/commit message
env:
GITHUB_COMMIT_URL: ${{ github.event.pull_request.commits_url }}
DCO_VERBOSITY: "-q"
DCO_RANGE: ""
working-directory: src/github.com/containerd/console
run: |
if [ -z "${GITHUB_COMMIT_URL}" ]; then
DCO_RANGE=$(jq -r '.before +".."+ .after' ${GITHUB_EVENT_PATH})
else
DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha +".."+ .[-1].sha')
fi
../project/script/validate/dco

- name: Check file headers
run: ../project/script/validate/fileheader ../project/
working-directory: src/github.com/containerd/console
- name: Project Checks
uses: containerd/project-checks@v1.1.0
with:
working-directory: src/github.com/containerd/console

- name: Go Linting
run: GOGC=75 golangci-lint run
Expand Down