Upgrade buildbarn components 2024 08 14 #194
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jobs": { | |
"build_and_test": { | |
"runs-on": "ubuntu-latest", | |
"steps": [ | |
{ | |
"name": "Restore Bazelisk cache", | |
"uses": "actions/cache@v1", | |
"with": { | |
"key": "bazelisk", | |
"path": "~/.cache/bazelisk" | |
} | |
}, | |
{ | |
"name": "Installing Bazelisk", | |
"run": "bazelisk_fingerprint=231ec5ca8115e94c75a1f4fbada1a062b48822ca04f21f26e4cb1cd8973cd458 &&\n(echo \"${bazelisk_fingerprint} ${HOME}/.cache/bazelisk/bazel\" | sha256sum --check --quiet) || (\n mkdir -p ~/.cache/bazelisk &&\n curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 > ~/.cache/bazelisk/bazelisk.tmp &&\n chmod +x ~/.cache/bazelisk/bazelisk.tmp &&\n mv ~/.cache/bazelisk/bazelisk.tmp ~/.cache/bazelisk/bazel\n) &&\n(echo \"${bazelisk_fingerprint} ${HOME}/.cache/bazelisk/bazel\" | sha256sum --check --quiet) &&\necho \"~/.cache/bazelisk\" >> ${GITHUB_PATH}\n" | |
}, | |
{ | |
"name": "Installing grpcurl", | |
"run": "mkdir -p ~/.cache/grpcurl &&\ncurl -L https://github.com/fullstorydev/grpcurl/releases/download/v1.8.9/grpcurl_1.8.9_linux_x86_64.tar.gz | tar -xz -C ~/.cache/grpcurl &&\necho \"~/.cache/grpcurl\" >> ${GITHUB_PATH}\n" | |
}, | |
{ | |
"name": "Install k3d", | |
"run": "curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash" | |
}, | |
{ | |
"name": "Check out source code", | |
"uses": "actions/checkout@v1" | |
}, | |
{ | |
"name": "Gazelle", | |
"run": "bazel run //:gazelle" | |
}, | |
{ | |
"name": "Buildifier", | |
"run": "bazel run //:buildifier.check" | |
}, | |
{ | |
"name": "Gofmt", | |
"run": "bazel run @cc_mvdan_gofumpt//:gofumpt -- -lang 1.19 -w -extra $(pwd)" | |
}, | |
{ | |
"name": "GitHub workflows", | |
"run": "bazel build //tools/github_workflows && cp bazel-bin/tools/github_workflows/*.yaml .github/workflows" | |
}, | |
{ | |
"name": "Check the diff between docker-compose and Kubernetes configs", | |
"run": "tools/diff-docker-and-k8s-configs.sh > tools/expected-docker-and-k8s-configs.diff" | |
}, | |
{ | |
"name": "Update versions of the container images", | |
"run": "tools/update-container-image-versions.sh" | |
}, | |
{ | |
"name": "Test style conformance", | |
"run": "git diff --exit-code HEAD --" | |
}, | |
{ | |
"name": "Golint", | |
"run": "bazel run @org_golang_x_lint//golint -- -set_exit_status $(pwd)/..." | |
}, | |
{ | |
"name": "Test bare deployment", | |
"run": "tools/test-deployment-bare.sh" | |
}, | |
{ | |
"name": "Test docker-compose deployment", | |
"run": "tools/test-deployment-docker-compose.sh" | |
}, | |
{ | |
"name": "Test Kubernetes deployment", | |
"run": "tools/test-deployment-kubernetes" | |
}, | |
{ | |
"name": "linux_amd64: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_amd64 //..." | |
}, | |
{ | |
"name": "linux_386: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_386 //..." | |
}, | |
{ | |
"name": "linux_arm: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm //..." | |
}, | |
{ | |
"name": "linux_arm64: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:linux_arm64 //..." | |
}, | |
{ | |
"name": "darwin_amd64: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_amd64 //..." | |
}, | |
{ | |
"name": "darwin_arm64: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:darwin_arm64 //..." | |
}, | |
{ | |
"name": "freebsd_amd64: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:freebsd_amd64 //..." | |
}, | |
{ | |
"name": "windows_amd64: build and test", | |
"run": "bazel build --platforms=@rules_go//go/toolchain:windows_amd64 //..." | |
} | |
] | |
} | |
}, | |
"name": "pull-requests", | |
"on": { | |
"pull_request": { | |
"branches": [ | |
"master" | |
] | |
} | |
} | |
} |