Skip to content

Commit

Permalink
another attempt to use correct packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteinich authored and DanielMSchmidt committed Nov 30, 2021
1 parent 317ab38 commit db9faaa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
name: dist
path: dist
- name: install test dependencies
run: cd test && yarn
run: cd test && yarn install
- name: integration tests
run: cd test && ./run-against-dist npx jest ${TEST_TARGET}
run: cd test && yarn integration ${TEST_TARGET}
env:
TEST_TARGET: ${{ matrix.target }}
TERRAFORM_CLOUD_TOKEN: ${{ secrets.TERRAFORM_CLOUD_TOKEN }}
Expand Down Expand Up @@ -103,9 +103,9 @@ jobs:
name: dist
path: dist
- name: install test dependencies
run: cd test && yarn
run: cd test && yarn install
- name: integration tests
run: cd test && ./run-against-dist.bat "npx jest ${env:TEST_TARGET}"
run: cd test && yarn integration:windows ${env:TEST_TARGET}
env:
TEST_TARGET: ${{ matrix.target }}
TERRAFORM_CLOUD_TOKEN: ${{ secrets.TERRAFORM_CLOUD_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
name: dist
path: dist
- name: install test dependencies
run: cd test && yarn
run: cd test && yarn install
- name: integration tests
run: cd test && ./run-against-dist npx jest ${TEST_TARGET}
run: cd test && yarn integration ${TEST_TARGET}
env:
TEST_TARGET: ${{ matrix.target }}
TERRAFORM_CLOUD_TOKEN: ${{ secrets.TERRAFORM_CLOUD_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
name: dist
path: dist
- name: install test dependencies
run: cd test && yarn
run: cd test && yarn install
- name: integration tests
run: cd test && ./run-against-dist npx jest ${TEST_TARGET}
run: cd test && yarn integration ${TEST_TARGET}
env:
TEST_TARGET: ${{ matrix.target }}
TERRAFORM_CLOUD_TOKEN: ${{ secrets.TERRAFORM_CLOUD_TOKEN }}
Expand Down
5 changes: 4 additions & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "end2end-tests",
"version": "0.0.0",
"description": "This directory contains integration tests for the cdktf project.",
"scripts": {},
"scripts": {
"integration": "./run-against-dist cross-env NODE_OPTIONS=--max-old-space-size=4096 npx jest",
"integration:windows": "run-against-dist.bat cross-env NODE_OPTIONS=--max-old-space-size=4096 npx jest"
},
"license": "MPL-2.0",
"devDependencies": {
"@skorfmann/terraform-cloud": "^1.9.1",
Expand Down

0 comments on commit db9faaa

Please sign in to comment.