Skip to content

Dynamic partitioning: client side #18945

Dynamic partitioning: client side

Dynamic partitioning: client side #18945

Workflow file for this run

name: linters
on:
pull_request:
permissions:
contents: read
jobs:
lint-actions:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- name: lint actions
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
make lint-actions
shell: bash
lint-protos:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: lint protobuf definitions
run: |
make lint-protos
lint-api:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
submodules: true
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: lint protobuf API definitions
run: |
make lint-api
lint-workflows:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: lint system workflows with workflowcheck
run: make workflowcheck
fmt:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- name: apply formatters
run: |
make fmt
- name: check-is-dirty
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "Detected uncommitted changes."
git status
git diff
exit 1
fi
parallelize-tests:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- name: check test parallelization
run: make parallelize-tests
- name: check-is-dirty
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "Detected uncommitted changes after running parallelize-tests."
echo "Run 'make parallelize-tests' locally and commit the changes."
git status
git diff
exit 1
fi
golangci:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
check-latest: true
cache: true
- name: lint code
run: |
make GOLANGCI_LINT_FIX=false GOLANGCI_LINT_BASE_REV=HEAD~ lint-code
- name: check-is-dirty
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "Detected uncommitted changes."
git status
git diff
exit 1
fi
linters-succeed:
name: All Linters Succeed
needs:
- fmt
- lint-api
- lint-protos
- lint-actions
- golangci
- parallelize-tests
runs-on: ubuntu-24.04-arm
if: always()
env:
RESULTS: ${{ toJSON(needs.*.result) }}
steps:
- name: Check results
run: |
if [[ -n $(echo "$RESULTS" | jq '.[] | select (. != "success")') ]]; then
exit 1
fi