From 8f8cbcdfd3cea2823b592483626bc1eb444c6b25 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Fri, 11 Aug 2023 08:39:32 +0200 Subject: [PATCH] Update ci-shuntest.yml --- .github/workflows/ci-shuntest.yml | 71 ++----------------------------- 1 file changed, 3 insertions(+), 68 deletions(-) diff --git a/.github/workflows/ci-shuntest.yml b/.github/workflows/ci-shuntest.yml index 7e00a2dc4..724eec846 100644 --- a/.github/workflows/ci-shuntest.yml +++ b/.github/workflows/ci-shuntest.yml @@ -20,72 +20,7 @@ concurrency: cancel-in-progress: true jobs: - build-n-test: - runs-on: ubuntu-22.04 - steps: + run: + uses: sysown/proxysql/.github/workflows/ci-shuntest.yml@GH-Actions + secrets: inherit - - name: Install dependencies - run: | - sudo apt-get update -y - sudo apt-get install -y sysbench gettext - - - name: Checkout proxysql - uses: actions/checkout@v3 - with: - repository: 'sysown/proxysql' -# ref: 'v2.x' - fetch-depth: 0 - path: 'proxysql' - - - name: Checkout jenkins_build_scripts - uses: actions/checkout@v3 - with: - repository: 'proxysql/jenkins-build-scripts' - ref: 'proxysql_repl_tests' - fetch-depth: 0 - path: 'jenkins-build-scripts' - token: ${{ secrets.GH_TOKEN }} - - - name: Set GIT_VERSION - run: | - cd proxysql/ - git fetch --tags --force - echo "GIT_VERSION=$(git describe --long --abbrev=7)" >> $GITHUB_ENV - - - name: Build - run: | - cd proxysql/ - make ubuntu22-dbg - - - name: Docker-hoster - run: | - cd jenkins-build-scripts/infra-docker-hoster - docker-compose up -d - - - name: Shun-tests - run: | - set +e - - cd jenkins-build-scripts - sed -i "s|#!/usr/bin/bash|#!/usr/bin/bash +e|" proxysql_repl_tests/bin/debezium-check.bash - sed -i "s|#!/usr/bin/bash|#!/usr/bin/bash +e|" proxysql_repl_tests/exec_repl_test.sh - sed -i "s|JENKINS_SCRIPTS_PATH=.*|JENKINS_SCRIPTS_PATH=${{ github.workspace }}/jenkins-build-scripts|" env.sh - sed -i "s|WORKSPACE=.*|WORKSPACE=${{ github.workspace }}/proxysql|" env.sh - - cd proxysql_repl_tests - ./exec_shun_test.sh - RC=$? - - sudo chmod -R 777 ${{ github.workspace }}/* - exit $RC - - - name: Archive artifacts - if: always() - uses: actions/upload-artifact@v3 - with: - name: ci-selftests-${{ env.GIT_VERSION }}-run#${{ github.run_number }} - path: | - proxysql/src/ - proxysql/ci_infra_logs/ - -