Skip to content

fix(deps): update module github.com/z5labs/bedrock to v0.16.1 #64

fix(deps): update module github.com/z5labs/bedrock to v0.16.1

fix(deps): update module github.com/z5labs/bedrock to v0.16.1 #64

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths:
- '**.go'
- '**.bazel'
- '.bazelversion'
- '.bazelrc'
- 'go.mod'
- 'go.sum'
- 'MODULE.bazel'
- 'MODULE.bazel.lock'
pull_request:
branches:
- main
paths:
- '**.go'
- '**.bazel'
- '.bazelversion'
- '.bazelrc'
- 'go.mod'
- 'go.sum'
- 'MODULE.bazel'
- 'MODULE.bazel.lock'
permissions:
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Generate build version
id: info
run: |
formatted_date=$(date +'%Y.%m.%d')
time=$(date +'%H%M%S')
short_commit_id=$(git rev-parse --short HEAD)
echo "build_version=${formatted_date}.${time}.${short_commit_id}" >> $GITHUB_OUTPUT
- name: Mount Bazel cache
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'MODULE.bazel') }}
restore-keys: |
${{ runner.os }}-bazel-
- name: Fetch dependencies
run: bazel fetch //...
- name: Build
run: bazel build //...
- name: Test
run: bazel test //...
- name: Build Container Images
run: |
tarballTargets=$(bazel query "kind(filegroup, //...)" | grep ".tar$")
while IFS=';' read -ra tarballs; do
for tarball in "${tarballs[@]}"; do
bazel build $tarball
done
done <<< "$tarballTargets"