Skip to content

Commit

Permalink
add to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Sep 7, 2023
1 parent 574d782 commit 01c4153
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
15 changes: 14 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,20 @@ steps:
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}"
paths: ['.yarn/cache/']

- label: '[Consent] Integration Tests'
agents:
queue: v1
commands:
- npm config set "//registry.npmjs.org/:_authToken" $${NPM_TOKEN}
- echo "--- Install dependencies"
- HUSKY=0 yarn install --immutable
- echo "+++ Run Tests"
- yarn turbo run --filter='consent-tools-integration-tests' test:intg
plugins:
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v2.0.0:
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}"
paths: ['.yarn/cache/']

- label: ':thisisfine: [Browser] Destinations QA / E2E'
key: destinations
agents:
Expand Down Expand Up @@ -183,4 +197,3 @@ steps:
agents:
queue: v1
command: 'bk-snyk'

5 changes: 2 additions & 3 deletions packages/consent/consent-tools-integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Why is this using wd.io instead of playwright?
- `/page-bundles` - For testing libraries that don't have a UMD bundle (i.e analytics-consent-tools)
- `/page-objects` - Page objects for the test suite
- `/page-tests ` - Tests that will be run on the page


## Development
### 1. Build this package + deps
Expand All @@ -21,9 +20,9 @@ yarn . build
```
### 2. Start server + run tests (and exit gracefully)
```
yarn start-server-and-test
yarn test:intg
```
### 3. Make code changes.

### 4. Build + re-run tests with `yarn start-server-and-test`.
### 4. Build + re-run tests with `yarn test:intg`.

5 changes: 2 additions & 3 deletions packages/consent/consent-tools-integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"private": true,
"scripts": {
".": "yarn run -T turbo run --filter=@internal/consent-tools-integration-tests...",
"dev": "yarn concurrently 'yarn watch' 'yarn build serve --open'",
"test:intg": "yarn build && yarn wdio:local",
"build": "webpack",
"watch": "yarn build --watch",
"test:local": "wdio wdio.conf.local.ts",
"start-server-and-test": "yarn build && yarn test:local",
"wdio:local": "wdio wdio.conf.local.ts",
"lint": "yarn concurrently 'yarn:eslint .' 'yarn:tsc --noEmit'",
"eslint": "yarn run -T eslint",
"tsc": "tsc",
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"test": {
"dependsOn": ["^build"]
},
"test:intg": {
"dependsOn": ["^build"]
},
"watch": {
"cache": false,
"outputs": ["dist/**"]
Expand Down

0 comments on commit 01c4153

Please sign in to comment.