constellation/.github/workflows/test-unittest.yml

43 lines
1.0 KiB
YAML
Raw Normal View History

name: Unit Tests
on:
workflow_dispatch:
push:
branches:
- main
- "release/**"
2022-09-03 11:47:47 -04:00
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "**/testdata/**"
- ".github/workflows/test-unittest.yml"
pull_request:
2022-09-03 11:47:47 -04:00
paths:
- "cli/internal/helm/**"
2022-09-03 11:47:47 -04:00
- "**.go"
- "**/go.mod"
- "**/go.sum"
- "**/testdata/**"
- ".github/workflows/test-unittest.yml"
jobs:
2023-05-19 10:18:59 -04:00
test-unittest:
2023-05-19 10:56:22 -04:00
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 || '' }}
2023-05-19 10:56:22 -04:00
- name: Setup bazel
uses: ./.github/actions/setup_bazel
with:
2023-05-19 10:56:22 -04:00
useCache: "true"
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
2022-05-31 12:33:27 -04:00
- name: Unit Tests
2022-10-31 14:25:02 -04:00
env:
TMPDIR: ${{ runner.temp }}
2023-05-19 10:56:22 -04:00
run: bazel test //... --test_output=errors --config=nostamp