Skip to content

worker: reliably clean up offline WireGuard peers #1402

worker: reliably clean up offline WireGuard peers

worker: reliably clean up offline WireGuard peers #1402

Workflow file for this run

name: Bazel tests
on: [push, pull_request]
permissions:
contents: read
actions: read
checks: write
jobs:
bazel-run:
runs-on: ubuntu-latest
steps:
- name: Setup cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: "/home/runner/.cache/bazel"
key: bazel
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Run Bazel tests
run: bazel test ...:all --test_output=all --action_env=WGKEX_CONFIG_FILE=`pwd`/wgkex.yaml.example
- name: Python coverage
run: |
sudo apt-get install -y lcov
mkdir "${GITHUB_WORKSPACE}/src"
cd "${GITHUB_WORKSPACE}/src"
curl -L https://files.pythonhosted.org/packages/9d/e0/70553e3000e345daff267cec284ce4cbf3fc141b6da229ac52775b5428f1/coverage-7.13.5.tar.gz| tar xvz
cd "${GITHUB_WORKSPACE}"
bazel coverage --combined_report=lcov --java_runtime_version=remotejdk_11 -t- --instrument_test_targets \
--test_output=errors --linkopt=--coverage --linkopt=-lc --instrumentation_filter=//wgkex \
--test_env=PYTHON_COVERAGE=${GITHUB_WORKSPACE}/src/coverage-7.13.5/__main__.py \
--test_verbose_timeout_warnings --define=config_file=test ...:all
- name: Coveralls
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: bazel-out/_coverage/_coverage_report.dat