mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 07:59:37 -05:00
576b48c8b7
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: Unit Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "release/**"
|
|
paths:
|
|
- "**.go"
|
|
- "**/go.mod"
|
|
- "**/go.sum"
|
|
- "**/testdata/**"
|
|
- ".github/workflows/test-unittest.yml"
|
|
pull_request:
|
|
paths:
|
|
- "cli/internal/helm/**"
|
|
- "**.go"
|
|
- "**/go.mod"
|
|
- "**/go.sum"
|
|
- "**/testdata/**"
|
|
- ".github/workflows/test-unittest.yml"
|
|
|
|
jobs:
|
|
test-unittest:
|
|
runs-on: [self-hosted, bazel-cached]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
with:
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
|
|
|
- name: Setup bazel
|
|
uses: ./.github/actions/setup_bazel
|
|
with:
|
|
useCache: "true"
|
|
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
|
|
|
- name: Unit Tests
|
|
env:
|
|
TMPDIR: ${{ runner.temp }}
|
|
run: bazel test //... --test_output=errors --config=nostamp
|