Skip to content

[lakebox] Default staging SSH gateway to ue1.s.dbrx.dev #6280

[lakebox] Default staging SSH gateway to ue1.s.dbrx.dev

[lakebox] Default staging SSH gateway to ue1.s.dbrx.dev #6280

Workflow file for this run

name: check
on:
pull_request:
types: [opened, synchronize]
merge_group:
types: [checks_requested]
push:
# Always run on push to main. The build cache can only be reused
# if it was saved by a run from the repository's default branch.
# The run result will be identical to that from the merge queue
# because the commit is identical, yet we need to perform it to
# seed the build cache.
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
# Use different schema from regular job, to avoid overwriting the same key
cache-dependency-path: |
go.sum
.golangci.yaml
- name: Run go mod tidy
run: go mod tidy
- name: Fail if go.mod/go.sum changed
run: git diff --exit-code
- name: Run Go lint checks (does not include formatting checks)
run: go tool -modfile=tools/task/go.mod task lint
- name: Run ruff (Python linter and formatter)
uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0
with:
version: "0.9.1"
args: "format --check"
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: "0.8.9"
- name: "task fmt: Python and Go formatting"
# Python formatting is already checked above, but this also checks Go and YAML formatting
run: |
go tool -modfile=tools/task/go.mod task fmt
git diff --exit-code
- name: "task checks: custom checks outside of fmt and lint"
run: |-
go tool -modfile=tools/task/go.mod task checks
git diff --exit-code