Skip to content

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
pull-requests: read
jobs:
project:
name: Project Checks
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
path: src/github.com/containerd/project-checks
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- uses: containerd/[email protected]
if: github.repository == 'containerd/project-checks'
with:
working-directory: src/github.com/containerd/project-checks
repo-access-token: ${{ secrets.GITHUB_TOKEN }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: |
scversion="v0.10.0"
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv
echo "${PWD}/shellcheck-${scversion}/shellcheck" >> ${GITHUB_PATH}
- name: Shellcheck
run: |
shellcheck ./script/validate/dco ./script/validate/fileheader ./script/validate/vendor