Skip to content

feat: add a method to check if the scope module already exists in the capability keeper (backport #6716) #1548

feat: add a method to check if the scope module already exists in the capability keeper (backport #6716)

feat: add a method to check if the scope module already exists in the capability keeper (backport #6716) #1548

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:
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@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build capability-module
run: |
cd modules/capability
GOARCH=${{ matrix.go-arch }} go build ./...
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Go Test
run: |
cd modules/capability
go test -v -mod=readonly ./...