Skip to content

feat(xen): pv-iommu integration patches (#251) #131

feat(xen): pv-iommu integration patches (#251)

feat(xen): pv-iommu integration patches (#251) #131

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on:
group: Self Hosted
labels: edera-24
env:
SHFMT_VERSION: "3.12.0"
SHELLCHECK_VERSION: "0.11.0"
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
# Pin tool versions to match the local formatter; a version skew would
# reformat differently and flip the gate red on already-formatted code.
- name: Install tools
run: |
mkdir -p "${HOME}/.local/bin"
echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
curl -sSfL "https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_amd64" -o "${HOME}/.local/bin/shfmt"
chmod +x "${HOME}/.local/bin/shfmt"
curl -sSfL "https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar -xJ -C /tmp
install -m755 "/tmp/shellcheck-v${SHELLCHECK_VERSION}/shellcheck" "${HOME}/.local/bin/shellcheck"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: "3.14"
- name: Show versions
run: |
shfmt --version
uv tool run black --version
shellcheck --version
- name: Check formatting
run: ./hack/code/format.sh --check