From: Tom Hromatka Date: Wed, 2 Jun 2021 21:07:29 +0000 (+0000) Subject: github: Add self-hosted runner X-Git-Tag: v3.0~269^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f051fe3ac7d442187afad6f8764ed883558b01ac;p=thirdparty%2Flibcgroup.git github: Add self-hosted runner Add a self-hosted runner to test full v2 functionality Signed-off-by: Tom Hromatka --- diff --git a/.github/actions/setup-libcgroup/action.yml b/.github/actions/setup-libcgroup/action.yml index f1196971..3a62ecab 100644 --- a/.github/actions/setup-libcgroup/action.yml +++ b/.github/actions/setup-libcgroup/action.yml @@ -24,7 +24,7 @@ description: "Install dependencies, git clone, bootstrap, configure, and make li runs: using: "composite" steps: - - run: sudo apt update + - run: sudo apt-get update shell: bash - run: sudo apt-get install libpam-dev lcov shell: bash diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 126d6b88..1eb29d59 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -89,8 +89,8 @@ jobs: flag-name: "Cgroup v1 Functional Tests" parallel: True - functionaltestsv2: - name: Cgroup v2 Functional Tests + functionaltestsv1v2: + name: Cgroup v1/v2 Functional Tests runs-on: ubuntu-20.04 steps: @@ -106,6 +106,42 @@ jobs: cat /sys/fs/cgroup/unified/cgroup.subtree_control - name: Install container dependencies run: sudo apt-get install lxc lxd + - uses: actions/checkout@v2 + with: + submodules: false + - name: Initialize the directory + uses: ./.github/actions/setup-libcgroup + - name: Run functional tests + run: | + make check + pushd tests/ftests + popd + - name: Display test logs + if: ${{ always() }} + run: | + cat tests/ftests/ftests.sh.log + cat tests/ftests/ftests-nocontainer.sh.log + - name: Archive test logs + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: Cgroup v1v2 test logs + path: tests/ftests/*.log + - name: Collate code coverage results + run: lcov -d . -c > lcov.info + - name: Upload code coverage results + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./lcov.info + flag-name: "Cgroup v1/v2 Functional Tests" + parallel: True + + functionaltestsv2: + name: Cgroup v2 Functional Tests + runs-on: self-hosted + + steps: - uses: actions/checkout@v2 with: submodules: false @@ -139,7 +175,7 @@ jobs: finalize: name: Finalize the test run - needs: [unittests, functionaltestsv1, functionaltestsv2] + needs: [unittests, functionaltestsv1, functionaltestsv1v2, functionaltestsv2] runs-on: ubuntu-latest steps: - name: Finalize code coverage results