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

Update to leverage pnpm for monorepo #37259

Merged
merged 35 commits into from
May 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c219beb
Update to leverage pnpm for monorepo
ijjk May 28, 2022
65d85b1
update compiled
ijjk May 28, 2022
9a322fc
update stats action
ijjk May 28, 2022
cb81d92
update ci install step
ijjk May 28, 2022
4579487
update ci
ijjk May 28, 2022
1765a75
add test dep
ijjk May 28, 2022
7f5be35
update invoking scripts
ijjk May 28, 2022
ac670e9
update caching
ijjk May 28, 2022
ccbb9d7
skip cache for now
ijjk May 28, 2022
44d9c73
update dep
ijjk May 28, 2022
9415a05
update packages and fix babel
ijjk May 28, 2022
50b2240
update compiled
ijjk May 28, 2022
6c5cd4e
update lint
ijjk May 28, 2022
f5e73f8
update test
ijjk May 28, 2022
6c59acf
update ci
ijjk May 28, 2022
bc7b937
update pnpm store caching
ijjk May 28, 2022
3ef07ee
update path for windows
ijjk May 28, 2022
32f40d0
update restore-key config
ijjk May 28, 2022
20cee43
update caching
ijjk May 28, 2022
9a931c1
remove extra build azure stage
ijjk May 28, 2022
08e4d22
re-add checkout
ijjk May 28, 2022
c3b14d2
update setting pnpm store
ijjk May 28, 2022
95e9968
bump
ijjk May 28, 2022
ec48bf3
remove azure caching as pnpm is faster to download
ijjk May 28, 2022
9d8123e
update contributing
ijjk May 28, 2022
eab1ce7
apply suggestions
ijjk May 28, 2022
11cd69f
remove install-peers
ijjk May 28, 2022
41c8f8f
prepublish -> prepublishOnly
ijjk May 28, 2022
10973f9
prepublish -> prepublishOnly more
ijjk May 28, 2022
56c938c
more yarn -> pnpm references
ijjk May 28, 2022
3072628
more yarn -> pnpm references take 2
ijjk May 28, 2022
d2555f4
use workspace protocol for root package.json
ijjk May 29, 2022
6f0710a
Merge branch 'canary' into update/use-pnpm
ijjk May 29, 2022
e055947
Merge branch 'canary' into update/use-pnpm
ijjk May 29, 2022
99a7423
Merge branch 'canary' into update/use-pnpm
styfle May 29, 2022
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
Prev Previous commit
Next Next commit
update ci
  • Loading branch information
ijjk committed May 28, 2022
commit 6c59acf3d3de37fdbab14df32ed9daeec8dc9e20
9 changes: 9 additions & 0 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,21 @@ jobs:
- id: get-week
run: echo ::set-output name=WEEK::$(date +%U)

- id: get-store-path
run: echo ::set-output name=STORE_PATH::$(pnpm store path)

- uses: actions/cache@v3
id: cache-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}

- uses: actions/cache@v3
id: cache-pnpm-store
with:
path: ${{ steps.get-store-path.outputs.STORE_PATH }}
key: pnpm-store

lint:
runs-on: ubuntu-latest
needs: build
Expand Down
16 changes: 13 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ stages:
- script: dir $(System.DefaultWorkingDirectory)
- script: echo $(Build.SourceVersion)
- powershell: Get-MpComputerStatus

- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js'

- task: Cache@2
inputs:
# use deterministic cache key that is specific
# to this test run
key: $(Build.SourceVersion)
path: $(System.DefaultWorkingDirectory)
displayName: Cache Build
- script: |
npm i -g pnpm && pnpm install
displayName: 'Install dependencies'

- script: |
node run-tests.js --timings --write-timings --azure -g 1/1
displayName: 'Fetch test timing data'
Expand All @@ -86,6 +86,10 @@ stages:
path: $(System.DefaultWorkingDirectory)
displayName: Cache Build

- script: |
npm i -g pnpm && pnpm install && pnpm run build
displayName: 'Install and build'

- script: |
npx playwright install chromium

Expand All @@ -101,17 +105,23 @@ stages:
- script: |
wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value
displayName: 'List Chrome version'

- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js'

- task: Cache@2
inputs:
# use deterministic cache key that is specific
# to this test run
key: $(Build.SourceVersion)
path: $(System.DefaultWorkingDirectory)
displayName: Cache Build

- script: |
npm i -g pnpm && pnpm install && pnpm run build

- script: |
node run-tests.js --type unit
displayName: 'Run tests'
Expand Down