Skip to content

Commit

Permalink
chore: run e2e cloud tests from test dir (#5145)
Browse files Browse the repository at this point in the history
Follow-up to #4608

Tests now need to run from the test directory in case a .env file is used

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
MarkMcCulloh authored Dec 6, 2023
1 parent 5f4537e commit bbeef5e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tf-aws-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,17 @@ jobs:
command: |
if ${{ env.MANUAL == 'true' }}
then
pnpm install
pnpm wing test -t ${{ matrix.target }} ${{ matrix.test.directory }}/*.test.w
pnpm install
pnpm turbo compile -F=winglang
WING_CLI=$(realpath apps/wing/bin/wing)
elif ${{ env.LOCAL_BUILD == 'false'}}
then
wing test -t ${{ matrix.target }} ${{ matrix.test.directory }}/*.test.w
WING_CLI=$(which wing)
else
./localwing/node_modules/.bin/wing test -t ${{ matrix.target }} ${{ matrix.test.directory }}/*.test.w
WING_CLI=$(realpath localwing/node_modules/.bin/wing)
fi
cd ${{ matrix.test.directory }}
$WING_CLI test -t ${{ matrix.target }} *.test.w
- name: Output Terraform log
if: failure()
Expand Down

0 comments on commit bbeef5e

Please sign in to comment.