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

Signed-off-by: Sam Gammon <sam@elide.ventures>
  • Loading branch information
sgammon committed Aug 13, 2023
1 parent 989bba2 commit 5db9f5c
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 47 deletions.
12 changes: 12 additions & 0 deletions .github/dependency-review-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
license-check: true
vulnerability-check: true
fail-on-severity: "low"

allow-licenses:
- GPL-3.0
- BSD-3-Clause
- MIT
- Apache-2.0

allow-ghsas: []

12 changes: 0 additions & 12 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
schedule:
- cron: "0 0 * * 1"
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/dependency-review.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/module.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,43 @@ 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: ["BCR"]
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 @@ -14,10 +14,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
2 changes: 1 addition & 1 deletion .github/workflows/on.push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
label: Ubuntu
labs: false
- runner: ubuntu-latest
label: Ubuntu / Bzlmod
label: Ubuntu - Bzlmod
bzlmod: true
labs: true
- runner: windows-latest
Expand Down
10 changes: 5 additions & 5 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5db9f5c

Please sign in to comment.