diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0f74b0..12798a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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