mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 00:50:38 -05:00
wip: cached unit tests
This commit is contained in:
parent
c98644df2b
commit
c4ad246910
1 changed files with 14 additions and 15 deletions
29
.github/workflows/test-unittest.yml
vendored
29
.github/workflows/test-unittest.yml
vendored
|
|
@ -23,30 +23,23 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-linux:
|
test-linux:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: [self-hosted, bazel-cached]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
||||||
with:
|
with:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Setup Go environment
|
- name: Setup bazel
|
||||||
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
uses: ./.github/actions/setup_bazel
|
||||||
with:
|
with:
|
||||||
go-version: "1.20.4"
|
useCache: "true"
|
||||||
cache: true
|
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y libcryptsetup12 libcryptsetup-dev libvirt-dev
|
|
||||||
|
|
||||||
- name: Create and populate build folder
|
|
||||||
run: mkdir build && cd build && cmake ..
|
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
working-directory: build
|
|
||||||
env:
|
env:
|
||||||
TMPDIR: ${{ runner.temp }}
|
TMPDIR: ${{ runner.temp }}
|
||||||
run: bazelisk test //... --test_output=errors
|
run: bazel test //... --test_output=errors --config=nostamp
|
||||||
|
|
||||||
test-darwin:
|
test-darwin:
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
|
|
@ -56,6 +49,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
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: Setup Go environment
|
- name: Setup Go environment
|
||||||
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
||||||
with:
|
with:
|
||||||
|
|
@ -63,7 +62,7 @@ jobs:
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: CLI Unit Tests
|
- name: CLI Unit Tests
|
||||||
run: bazelisk test //cli/... --test_output=errors
|
run: bazel test //cli/... --test_output=errors
|
||||||
|
|
||||||
- name: cdbg/debugd Unit Tests
|
- name: cdbg/debugd Unit Tests
|
||||||
run: bazelisk test //debugd/... --test_output=errors
|
run: bazel test //debugd/... --test_output=errors
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue