Skip to content

Commit

Permalink
Finishing up Github Action with Upload Artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
flexponsive committed Feb 14, 2023
1 parent 219e077 commit dfb3af1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cookiecutter-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions e2e-tests/cookiecutters/test_cookiecutter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit dfb3af1

Please sign in to comment.