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

chore: replace turbo com package-builds #34037

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
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
10 changes: 8 additions & 2 deletions .github/workflows/ci-code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
# docker rmi $(docker image ls -aq)
# df -h

- uses: rharkor/caching-for-turbo@v1.5

- name: Restore turbo build
uses: actions/download-artifact@v4
with:
Expand All @@ -67,10 +65,18 @@ jobs:

- name: TS TypeCheck
if: matrix.check == 'ts'
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat
run: yarn turbo run typecheck

- name: Cache eslint
uses: actions/cache@v4
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat
if: matrix.check == 'lint'
with:
path: ./apps/meteor/.eslintcache
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci-deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rharkor/caching-for-turbo@v1.5

- name: Setup NodeJS
uses: ./.github/actions/setup-node
Expand All @@ -23,6 +22,10 @@ jobs:
install: true

- name: Build
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat
run: |
yarn turbo run build-preview
yarn turbo run .:build-preview-move
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,17 @@ jobs:
install: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: rharkor/caching-for-turbo@v1.5

- name: Restore turbo build
uses: actions/download-artifact@v4
with:
name: turbo-build
path: .turbo/cache

- run: yarn build
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat

# if we are testing a PR from a fork, we need to build the docker image at this point
- uses: ./.github/actions/build-docker
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ jobs:
install: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: rharkor/caching-for-turbo@v1.5

- name: Restore turbo build
uses: actions/download-artifact@v4
with:
name: turbo-build
path: .turbo/cache
- name: Unit Test
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat
run: yarn testunit

- uses: codecov/codecov-action@v3
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@ jobs:
restore-keys: |
vite-local-cache-${{ runner.os }}-

- uses: rharkor/caching-for-turbo@v1.5

- name: Build Rocket.Chat Packages
run: yarn build
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat

- name: Store turbo build
uses: actions/upload-artifact@v4
Expand All @@ -192,9 +194,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: rharkor/caching-for-turbo@v1.5
if: github.event.action != 'closed'

- name: Setup NodeJS
uses: ./.github/actions/setup-node
if: github.event.action != 'closed'
Expand All @@ -210,6 +209,10 @@ jobs:
path: .turbo/cache
- name: Build
if: github.event.action != 'closed'
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat
run: |
yarn turbo run build-preview
yarn turbo run .:build-preview-move
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ jobs:
install: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: rharkor/caching-for-turbo@v1.5

- name: Build packages
run: yarn build
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat

- name: 'Start release: ${{ github.event.inputs.name }}'
uses: ./packages/release-action
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr-update-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
install: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: rharkor/caching-for-turbo@v1.5

- name: Build packages
run: yarn build
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat

- name: Update PR description
uses: ./packages/release-action
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ jobs:
install: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: rharkor/caching-for-turbo@v1.5

- name: Build packages
run: yarn build
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat

- name: Publish final release
uses: ./packages/release-action
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
install: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: rharkor/caching-for-turbo@v1.5

- name: Build packages
run: yarn build
env:
TURBO_API: ${{ vars.TURBOAPI }}
TURBO_TOKEN: ${{ vars.TURBOREMOTEAPIKEY }}
TURBO_TEAM: rocket.chat

- name: 'Start release candidate'
uses: ./packages/release-action
Expand Down
Loading