Update dependency bazel to v6.3.2 #1797
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
--- | |
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install bazelisk | |
# yamllint disable rule:line-length | |
run: | | |
sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64 | |
sudo chmod +x /usr/local/bin/bazel | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }} | |
ref: ${{ github.head_ref }} | |
- name: Sync Dependencies | |
run: bazel run //:vendor | |
if: (github.actor == 'dependabot-preview[bot]') || (github.actor == 'renovate[bot]') | |
- name: autocommit | |
uses: stefanzweifel/git-auto-commit-action@v4.16.0 | |
with: | |
commit_message: Apply syncdeps changes | |
branch: ${{ github.head_ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} | |
if: (github.actor == 'dependabot-preview[bot]') || (github.actor == 'renovate[bot]') | |
- name: bazel build | |
run: bazel run :install | |
- name: Test | |
run: bazel test //... | |
- name: Coverage | |
run: | | |
bazel coverage //... | |
echo "coverage_files=$(find bazel-out/ -name 'coverage.dat' -printf '%p, ' | sed 's/, $//')" >> $GITHUB_ENV | |
- name: Detected Coverage Files | |
run: echo ${{ env.coverage_files }} | |
- uses: codecov/codecov-action@v3 | |
name: codecov upload | |
with: | |
files: ${{ env.coverage_files }} | |
- name: Set up Go | |
uses: actions/setup-go@master | |
with: | |
go-version: 1.18.5 | |
- name: setup-syft | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | \ | |
sh -s -- -b /usr/local/bin v0.32.0 | |
- name: dry run goreleaser | |
uses: goreleaser/goreleaser-action@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} | |
with: | |
version: latest | |
args: release --snapshot --skip-publish |