From eafbe7ea39424cb31b4ba693a5e76c475e48c9fe Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Thu, 24 Nov 2022 14:08:12 +0300 Subject: [PATCH] [WIFI-11619] Fix: workflow dependencies Signed-off-by: Dmitry Dunaev --- .github/workflows/update-tests.yml | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/update-tests.yml diff --git a/.github/workflows/update-tests.yml b/.github/workflows/update-tests.yml new file mode 100644 index 000000000..619508a2c --- /dev/null +++ b/.github/workflows/update-tests.yml @@ -0,0 +1,58 @@ +name: Update tests list from master branch + +on: + push: + paths: + - 'tests/**' + branches: + - master + workflow_dispatch: + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: build and push Docker image + uses: ./.github/actions/build-and-push-docker + with: + registry: tip-tip-wlan-cloud-docker-repo.jfrog.io + registry_user: ${{ secrets.DOCKER_USER_NAME }} + registry_password: ${{ secrets.DOCKER_USER_PASSWORD }} + + testsgen: + needs: [build] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Generate tests as allure results + run: docker run -v $PWD/allure-results:/allure-results tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} -c "cd tests; pytest -s -vvv --alluredir=/allure-results --skip-all" + + - name: Generate Allure report + uses: ./.github/actions/generate-allure-report + with: + results_path: ./allure-results + + - name: Publish Allure report to GitHub Pages + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + directory: ./allure-report + + cleanup: + needs: [build, testsgen] + runs-on: ubuntu-latest + if: always() + steps: + - uses: actions/checkout@v3 + - name: cleanup Docker image + uses: ./.github/actions/cleanup-docker + with: + registry_user: ${{ secrets.DOCKER_USER_NAME }} + registry_password: ${{ secrets.DOCKER_USER_PASSWORD }}