wip: cached unit tests

This commit is contained in:
Malte Poll 2023-05-19 16:56:22 +02:00 committed by Malte Poll
parent c98644df2b
commit c4ad246910

View File

@ -23,30 +23,23 @@ on:
jobs:
test-linux:
runs-on: ubuntu-22.04
runs-on: [self-hosted, bazel-cached]
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
- name: Setup Go environment
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
- name: Setup bazel
uses: ./.github/actions/setup_bazel
with:
go-version: "1.20.4"
cache: true
- 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 ..
useCache: "true"
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
- name: Unit Tests
working-directory: build
env:
TMPDIR: ${{ runner.temp }}
run: bazelisk test //... --test_output=errors
run: bazel test //... --test_output=errors --config=nostamp
test-darwin:
runs-on: macos-12
@ -56,6 +49,12 @@ jobs:
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: Setup Go environment
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
@ -63,7 +62,7 @@ jobs:
cache: true
- name: CLI Unit Tests
run: bazelisk test //cli/... --test_output=errors
run: bazel test //cli/... --test_output=errors
- name: cdbg/debugd Unit Tests
run: bazelisk test //debugd/... --test_output=errors
run: bazel test //debugd/... --test_output=errors