diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8d2ab09..860c465f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,43 +42,10 @@ jobs: path: src/github.com/containerd/cgroups fetch-depth: 25 - - name: Checkout common project repo - uses: actions/checkout@v3 + - name: Project checks + uses: containerd/project-checks@v1.1.0 with: - repository: containerd/project - path: src/github.com/containerd/project - - # - # Go get dependencies - # - - name: Install dependencies - env: - GO111MODULE: off - run: | - go get -u github.com/vbatts/git-validation - go get -u github.com/kunalkushwaha/ltag - - # - # DCO / File headers - # - - name: DCO - env: - GITHUB_COMMIT_URL: ${{ github.event.pull_request.commits_url }} - DCO_VERBOSITY: "-q" - DCO_RANGE: "" - working-directory: src/github.com/containerd/cgroups - run: | - set -x - if [ -z "${GITHUB_COMMIT_URL}" ]; then - DCO_RANGE=$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH}) - else - DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha +".."+ .[-1].sha') - fi - ../project/script/validate/dco - - - name: Headers - run: ../project/script/validate/fileheader ../project/ - working-directory: src/github.com/containerd/cgroups + working-directory: src/github.com/containerd/cgroups test: name: Test cgroups