Skip to content

Commit

Permalink
CI: Use action-install-vtest
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Mar 8, 2022
1 parent 5ce1299 commit 78af831
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
14 changes: 0 additions & 14 deletions .github/vtest.json

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/vtest.yml
Expand Up @@ -85,9 +85,6 @@ jobs:
run: |
brew install socat
brew install lua
- name: Install VTest
run: |
scripts/build-vtest.sh
- name: Install SSL ${{ matrix.ssl }}
if: ${{ matrix.ssl && matrix.ssl != 'stock' && steps.cache_ssl.outputs.cache-hit != 'true' }}
run: env ${{ matrix.ssl }} scripts/build-ssl.sh
Expand Down Expand Up @@ -125,16 +122,19 @@ jobs:
echo "::endgroup::"
haproxy -vv
echo "::set-output name=version::$(haproxy -v |awk 'NR==1{print $3}')"
- name: Install problem matcher for VTest
# This allows one to more easily see which tests fail.
run: echo "::add-matcher::.github/vtest.json"
- name: Run VTest for HAProxy ${{ steps.show-version.outputs.version }}
- name: Install VTest
uses: timwolla/action-install-vtest@main
id: install-vtest
with:
branch: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run VTest ${{ steps.vtest.outputs.commit }} for HAProxy ${{ steps.show-version.outputs.version }}
id: vtest
run: |
# This is required for macOS which does not actually allow to increase
# the '-n' soft limit to the hard limit, thus failing to run.
ulimit -n 5000
make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
make reg-tests REGTESTS_TYPES=default,bug,devel
- name: Show VTest results
if: ${{ failure() && steps.vtest.outcome == 'failure' }}
run: |
Expand Down

0 comments on commit 78af831

Please sign in to comment.