feat: implement Roles public api #5671
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
# Copyright 2023 The Cross-Media Measurement Authors | |
# | |
# 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 | |
# | |
# http://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: API lint | |
on: | |
pull_request: | |
branches: | |
- main | |
- 'releases/**' | |
types: [opened, synchronize, edited] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: API lint | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: world-federation-of-advertisers/actions/setup-api-linter@v2 | |
with: | |
version: 1.67.2 | |
sha256: 260064fad8c38feae402595b6cefef51d70e72b0b5968359c79ee8f3ad33ab27 | |
- name: Write auth.bazelrc | |
env: | |
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }} | |
run: | | |
cat << EOF > auth.bazelrc | |
build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY | |
EOF | |
- name: Write ~/.bazelrc | |
run: | | |
cat << EOF > ~/.bazelrc | |
common --config=ci | |
build --remote_download_outputs=toplevel # Need descriptor set output. | |
EOF | |
- uses: world-federation-of-advertisers/actions/setup-bazel@v2 | |
- run: tools/api-lint wfa/measurement/system | |
- run: tools/api-lint wfa/measurement/securecomputation | |
- run: tools/api-lint wfa/measurement/access |