Skip to content

Commit

Permalink
feat: tooling and bcr support
Browse files Browse the repository at this point in the history
- feat: add bazel ci presubmit
- test: run integration test for bzlmod in ci
- chore: add CLA, DCO docs
- chore: add PR template
- chore: add dependency review config
- chore: drop outdated travis config
- chore: readme updates
  • Loading branch information
sgammon committed Aug 13, 2023
1 parent 7830106 commit cb616cc
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/dependency-review-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ license-check: true
vulnerability-check: true
fail-on-severity: "low"

fail-on-severity: low
allow-licenses:
- GPL-3.0
- BSD-3-Clause
Expand All @@ -14,3 +13,4 @@ deny-licenses:
- BSD-2-Clause

allow-ghsas: []

39 changes: 39 additions & 0 deletions .github/workflows/module.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,42 @@ jobs:
${{ inputs.coverage && 'coverage' || 'test' }} \
--config=ci \
//...
integration-tests:
name: "Test: ${{ matrix.label }} (${{ inputs.label || 'Rules' }})"
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
continue-on-error: ${{ inputs.labs || matrix.labs }}
strategy:
fail-fast: false
matrix:
label: ["Bzlmod"]
target: ["//sample"]
action: ["build"]
directory: ["./example/integration_tests/bzlmod"]
labs: [false]
steps:
- name: "Setup: Checkout"
uses: actions/checkout@v3
- name: "Setup: msbuild"
uses: microsoft/setup-msbuild@v1.1
if: ${{ contains(inputs.runner, 'windows') }}
- name: "Setup: Bazel"
uses: bazelbuild/setup-bazelisk@v2
- name: "Setup: Cache"
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel-v2
- name: "Configure: Bazel"
shell: bash
run: |
echo "build --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_APIKEY }}" >> local.bazelrc
echo "build --remote_header=x-api-key=${{ secrets.BUILDLESS_APIKEY }}" >> local.bazelrc
- name: "Build: ${{ matrix.label }}"
continue-on-error: ${{ inputs.labs }}
working-directory: ${{ matrix.directory }}
shell: bash
run: |
bazel \
${{ matrix.action || 'build' }} \
${{ matrix.target || '//...' }}
4 changes: 2 additions & 2 deletions .github/workflows/on.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
bzlmod: [false]
include:
- runner: ubuntu-latest
label: Ubuntu / Standard
label: Ubuntu - Standard
labs: false
- runner: ubuntu-latest
label: Ubuntu / Bzlmod
label: Ubuntu - Bzlmod
bzlmod: true
labs: true
- runner: windows-latest
Expand Down

0 comments on commit cb616cc

Please sign in to comment.