Skip to content

chore: update to 0.52 #1847

chore: update to 0.52

chore: update to 0.52 #1847

Workflow file for this run

name: Capability Module
# This workflow runs when a PR is opened that targets code that is part of the capability module.
on:
merge_group:
pull_request:
paths:
- '.github/workflows/capability.yml'
- 'modules/capability/**'
- 'proto/capability/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-arch: ['amd64', 'arm', 'arm64']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build capability-module
run: |
cd modules/capability
GOARCH=${{ matrix.go-arch }} go build ./...
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Go Test
run: |
cd modules/capability
go test -v -mod=readonly ./... -coverprofile=coverage.out
code-analysis:
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
needs: [tests]
steps:
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null }}
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: modules/capability/