diff --git a/.github/workflows/cookiecutter-e2e.yml b/.github/workflows/cookiecutter-e2e.yml index e4938a801b..ba127bcb64 100644 --- a/.github/workflows/cookiecutter-e2e.yml +++ b/.github/workflows/cookiecutter-e2e.yml @@ -55,10 +55,14 @@ jobs: run: | bash e2e-tests/cookiecutters/test_cookiecutter.sh $CC_TEMPLATE $REPLAY_FILE 0 + - uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.replay }} + path: ${{ env.CC_TEST_OUTPUT }} + - name: Run lint env: REPLAY_FILE: e2e-tests/cookiecutters/${{ matrix.replay }} run: | - CC_OUTPUT_DIR=$(basename $REPLAY_FILE .json) - cd /tmp/$CC_OUTPUT_DIR + cd $CC_TEST_OUTPUT poetry run tox -e lint diff --git a/e2e-tests/cookiecutters/test_cookiecutter.sh b/e2e-tests/cookiecutters/test_cookiecutter.sh index cb7c29d383..307cce49b7 100644 --- a/e2e-tests/cookiecutters/test_cookiecutter.sh +++ b/e2e-tests/cookiecutters/test_cookiecutter.sh @@ -29,6 +29,10 @@ if [[ -d "$CC_TEST_OUTPUT" ]]; then rm -fr "$CC_TEST_OUTPUT" fi +if [[ -f $GITHUB_ENV ]]; then + echo CC_TEST_OUTPUT=$CC_BUILD_PATH/$CC_OUTPUT_DIR >> $GITHUB_ENV +fi + cookiecutter --replay-file $REPLAY_FILE $TAP_TEMPLATE -o $CC_BUILD_PATH && cd $CC_TEST_OUTPUT && pwd &&