From 5136e40ab021c4eaef323a5b6c50848b8eb7d45d Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 26 Mar 2020 13:34:04 +0000 Subject: [PATCH] :construction_worker_man: sync DINAR Pushed from https://github.com/itpp-labs/DINAR/.github/workflows/fork2repos.yml --- .github/workflows/DINAR-pr.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/DINAR-pr.yml b/.github/workflows/DINAR-pr.yml index 6d8196c..ff86aa1 100644 --- a/.github/workflows/DINAR-pr.yml +++ b/.github/workflows/DINAR-pr.yml @@ -154,17 +154,30 @@ jobs: mkdir new-deps/ # create dummy file to be sure that Artifact will be uploaded echo ok > new-deps/.empty + echo "::set-env name=ARTIFACT::empty" - name: Prepare DINAR with additional dependencies if: env.PR_MODULES_DEPS != '' || env.PR_DEPS != '' run: | # Save artifacts for local run and for integrations Tests bash DINAR/workflow-files/save-docker-layers.sh new-deps/ echo "${{ env.PR_MODULES_DEPS }}" > new-deps/modules.txt + echo "::set-env name=ARTIFACT::yes" - name: Save DINAR with dependencies uses: actions/upload-artifact@v1 with: name: new-deps path: new-deps/ + - name: HOW TO RUN QUICK TESTS LOCALLY + if: always() + run: | + export MODULES=${{ env.PR_MODULES }} + export LOAD_MODULES=${{ env.PR_MODULES_LOAD }} + export PR_NUM=${{ github.event.number }} + export VERSION=${{ github.event.pull_request.base.ref }} + export REVISION_PR=${{ github.event.pull_request.head.sha}} + export DINAR_REPO="itpp-labs/DINAR-fork" + export ODOO_EXTRA_ARG=--test-enable + bash DINAR/workflow-files/how-to-run-locally.sh ${{ secrets.GITHUB_TOKEN }} - name: Test updated modules if: env.PR_MODULES != '' run: | @@ -221,7 +234,6 @@ jobs: sudo apt-get install jq - name: HOW TO RUN TESTS LOCALLY if: always() - # TODO make similar for Quick Tests run: | export MODULES=${{ env.ALL_MODULES }} export LOAD_MODULES=${{ env.ALL_MODULES_LOAD }}