-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: cache artifacts to reduce api calls (#33567)
- Loading branch information
Showing
6 changed files
with
61 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,11 @@ jobs: | |
|
||
- uses: rharkor/[email protected] | ||
|
||
- name: Restore turbo build | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: turbo-build | ||
path: .turbo/cache | ||
- name: Cache TypeCheck | ||
uses: actions/cache@v3 | ||
if: matrix.check == 'ts' | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,11 @@ jobs: | |
|
||
- uses: rharkor/[email protected] | ||
|
||
- name: Restore turbo build | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: turbo-build | ||
path: .turbo/cache | ||
- run: yarn build | ||
# if we are testing a PR from a fork, we need to build the docker image at this point | ||
- uses: ./.github/actions/build-docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,11 @@ jobs: | |
|
||
- uses: rharkor/[email protected] | ||
|
||
- name: Restore turbo build | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: turbo-build | ||
path: .turbo/cache | ||
- name: Unit Test | ||
run: yarn testunit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,6 +174,46 @@ jobs: | |
- name: Build Rocket.Chat Packages | ||
run: yarn build | ||
|
||
- name: Store turbo build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: turbo-build | ||
path: .turbo/cache | ||
overwrite: true | ||
include-hidden-files: true | ||
|
||
deploy-preview: | ||
runs-on: ubuntu-latest | ||
needs: [release-versions, packages-build] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: rharkor/[email protected] | ||
if: github.event.action != 'closed' | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/setup-node | ||
if: github.event.action != 'closed' | ||
with: | ||
node-version: 14.21.3 | ||
deno-version: 1.37.1 | ||
cache-modules: true | ||
install: true | ||
|
||
- name: Build | ||
if: github.event.action != 'closed' | ||
run: | | ||
yarn turbo run build-preview | ||
yarn turbo run .:build-preview-move | ||
npx indexifier .preview --html --extensions .html > .preview/index.html | ||
- uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: .preview | ||
preview-branch: gh-pages | ||
umbrella-dir: pr-preview | ||
action: auto | ||
|
||
build: | ||
name: 📦 Meteor Build - coverage | ||
needs: [release-versions, packages-build] | ||
|