mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 16:09:45 -05:00
ci: add bazel tests
This commit is contained in:
parent
a722f911b7
commit
b7d3f3972b
31
.github/workflows/test-bazel.yml
vendored
Normal file
31
.github/workflows/test-bazel.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Bazel unit tests and linting
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- "release/**"
|
||||||
|
paths:
|
||||||
|
- "**.bzl"
|
||||||
|
- "**.bazel"
|
||||||
|
- ".github/workflows/test-bazel.yml"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "**.bzl"
|
||||||
|
- "**.bazel"
|
||||||
|
- ".github/workflows/test-bazel.yml"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
bazel-test:
|
||||||
|
name: Bazel tests
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||||
|
with:
|
||||||
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
|
- name: Run bazel test
|
||||||
|
shell: bash
|
||||||
|
run: bazelisk test --test_output=all ...
|
Loading…
Reference in New Issue
Block a user