Skip to content

Fixes workflows and more prominent version info #54

Fixes workflows and more prominent version info

Fixes workflows and more prominent version info #54

# Copyright 2020-2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Run bazel tests on Linux
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
bazel_test:
name: bazel test all (Linux)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Update apt
run: |
sudo apt update
- name: Install system libraries
run: |
sudo apt-get install libudev-dev
- name: Run gtest on ./
run: |
bazel test --test_output=all --spawn_strategy=local --test_timeout=60 //:all
- name: Run gtest on src/tests/
run: |
bazel test --test_output=all --spawn_strategy=local --test_timeout=60 //src/tests:all
- name: Run gtest on src/rsp/
run: |
bazel test --test_output=all --spawn_strategy=local --test_timeout=60 //src/rsp:all
- name: Run gtest on src/monitors/
run: |
bazel test --test_output=all --spawn_strategy=local --test_timeout=60 //src/monitors:all