Skip to content

google patch[setup]: fix build and clean readme. #6

google patch[setup]: fix build and clean readme.

google patch[setup]: fix build and clean readme. #6

Workflow file for this run

# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Basic Presubmit
on:
push:
jobs:
go:
name: Prometheus go & npm tests
runs-on: ubuntu-latest
container:
image: quay.io/prometheus/golang-builder:1.23-base
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: prometheus/promci@443c7fc2397e946bc9f5029e313a9c3441b9b86d # v0.4.7
- uses: ./.github/promci/actions/setup_environment
with:
enable_npm: true
- run: make test
build-image-amd64:
name: Ensure Google image builds (amd64)
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Ensure forked image is buildable
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset --credential yes --persistent yes
docker buildx create --name multi-arch-builder --use
docker buildx build -t ensure-it-builds:amd64 . --platform linux/amd64 --load
build-image-arm64:
name: Ensure Google image builds (arm64)
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Ensure forked image is buildable
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset --credential yes --persistent yes
docker buildx create --name multi-arch-builder --use
docker buildx build -t ensure-it-builds:arm64 . --platform linux/arm64 --load