Skip to content

Commit

Permalink
Engineering - React to template changes (#53)
Browse files Browse the repository at this point in the history
* Engineering - React to template changes

* update pipeline

* update comment

Co-authored-by: Martin Aeschlimann <[email protected]>
  • Loading branch information
lszomoru and aeschli authored Nov 3, 2022
1 parent 13db1a0 commit 8ef2fd8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
23 changes: 14 additions & 9 deletions build/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ extends:
npmPackages:
- name: test-web

buildPlatforms:
buildSteps:
- script: yarn --frozen-lockfile
displayName: Install dependencies

- script: yarn --cwd=fs-provider --frozen-lockfile
displayName: Install dependencies (fs-provider)

# the rest of the build steps are part of the 'prepack' script, automatically run when the pipeline invokes 'yarn pack'

testPlatforms:
- name: Linux
nodeVersions:
- 14.x
Expand All @@ -40,28 +49,24 @@ extends:
- 14.x
- 16.x

buildSteps:
testSteps:
- script: yarn --frozen-lockfile
displayName: Install dependencies

- script: yarn --cwd=fs-provider --frozen-lockfile
displayName: Install dependencies (fs-provider)

- script: yarn compile
displayName: Compile npm package
- script: yarn --cwd=sample --frozen-lockfile
displayName: Install dependencies (sample)

testSteps:
- bash: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
displayName: Start xvfb
condition: eq(variables['Agent.OS'], 'Linux')
- script: yarn --cwd=sample --frozen-lockfile
displayName: Install dependencies (sample)

- script: yarn sample-tests
displayName: Test npm package
displayName: Compile & test npm package
env:
DISPLAY: ':99.0'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"install-extensions": "yarn --cwd=fs-provider && yarn --cwd=sample",
"compile": "tsc -p ./ && yarn compile-fs-provider",
"watch": "tsc -w -p ./",
"prepublishOnly": "yarn compile",
"prepack": "yarn compile",
"test": "eslint src --ext ts && tsc --noEmit",
"preversion": "npm test",
"postversion": "git push && git push --tags",
Expand Down

0 comments on commit 8ef2fd8

Please sign in to comment.