Skip to content

Commit

Permalink
fix: adapt for npm switch in theia
Browse files Browse the repository at this point in the history
  • Loading branch information
planger committed Jan 9, 2025
1 parent c6387ec commit 1ddaf1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ jobs:
shell: bash
working-directory: ./theia
run: |
yarn --skip-integrity-check --network-timeout 100000
yarn browser build
yarn electron build
npm install -g node-gyp
npm ci
npm run build
npm run build:browser
npm run build:electron
env:
NODE_OPTIONS: --max_old_space_size=4096
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
Expand Down Expand Up @@ -96,7 +98,7 @@ jobs:
- name: Run Theia
shell: bash
working-directory: ./theia
run: yarn browser start &
run: npm run start:browser &

- name: Test (playwright browser)
shell: bash
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,25 @@ jobs:
shell: bash
working-directory: ./theia
run: |
yarn --skip-integrity-check --network-timeout 100000
yarn download:plugins --rate-limit 1
npm install -g node-gyp
npm ci
npm run download:plugins -- --rate-limit 1
env:
NODE_OPTIONS: --max_old_space_size=4096
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
- name: Build Browser App (Production)
shell: bash
working-directory: ./theia/examples/browser
run: |
yarn -s compile && yarn rebuild && yarn theia build --mode=production
npm run build:production
env:
NODE_OPTIONS: --max_old_space_size=4096
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
- name: Build Electron App (Production)
shell: bash
working-directory: ./theia/examples/electron
run: |
yarn -s compile && yarn rebuild && yarn theia build --mode=production
npm run build
env:
NODE_OPTIONS: --max_old_space_size=4096
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9
Expand Down Expand Up @@ -105,7 +106,7 @@ jobs:
- name: Run Theia browser backend (#${{ matrix.run }})
shell: bash
working-directory: ./theia
run: yarn browser start:debug &
run: npm run start:browser &
- name: Run Performance Measurement / browser (#${{ matrix.run }})
shell: bash
run: yarn performance
Expand Down

0 comments on commit 1ddaf1c

Please sign in to comment.