Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Engineering - React to template changes #53

Merged
merged 3 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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