Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
dionisio-bot[bot] authored Sep 11, 2024
1 parent 6730a3c commit f1e6e92
Show file tree
Hide file tree
Showing 1,350 changed files with 11,562 additions and 30,005 deletions.
7 changes: 0 additions & 7 deletions .changeset/brown-singers-appear.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/bump-patch-1725994635578.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Bump @rocket.chat/meteor version.
5 changes: 0 additions & 5 deletions .changeset/four-cherries-kneel.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/healthy-rivers-nail.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/heavy-snails-help.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/khaki-cameras-glow.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/many-balloons-scream.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/mighty-drinks-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nasty-tools-enjoy.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/quiet-cherries-punch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-toes-bow.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/sixty-spoons-own.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-pigs-share.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tame-mayflies-press.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/tiny-geckos-kiss.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-avocados-taste.md

This file was deleted.

34 changes: 5 additions & 29 deletions .github/actions/build-docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,21 @@ inputs:
required: false
description: 'Containers to build along with Rocket.Chat'
type: string
turbo-cache:
required: false
description: 'Enable turbo cache'
default: 'true'
publish-image:
required: false
description: 'Publish image'
default: 'true'
setup:
required: false
description: 'Setup node.js'
default: 'true'
NPM_TOKEN:
required: false
description: 'NPM token'

runs:
using: composite

steps:
- name: Login to GitHub Container Registry
if: inputs.publish-image == 'true' &&(github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop')
if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop')
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ inputs.CR_USER }}
password: ${{ inputs.CR_PAT }}

- name: Restore build
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: build
path: /tmp/build
Expand All @@ -57,21 +42,17 @@ runs:
cd /tmp/build
tar xzf Rocket.Chat.tar.gz
rm Rocket.Chat.tar.gz
- uses: rharkor/[email protected]
# if we are testing a PR from a fork, we already called the turbo cache at this point, so it should be false
if: inputs.turbo-cache == 'true'
- uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Setup NodeJS
uses: ./.github/actions/setup-node
if: inputs.setup == 'true'
with:
node-version: ${{ inputs.node-version }}
cache-modules: true
install: true
NPM_TOKEN: ${{ inputs.NPM_TOKEN }}

- run: yarn build
if: inputs.setup == 'true'
shell: bash

- name: Build Docker images
Expand All @@ -82,14 +63,9 @@ runs:
docker compose -f docker-compose-ci.yml build "${args[@]}"
- name: Publish Docker images to GitHub Container Registry
if: inputs.publish-image == 'true' && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop')
if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop')
shell: bash
run: |
args=(rocketchat ${{ inputs.build-containers }})
docker compose -f docker-compose-ci.yml push "${args[@]}"
- name: Clean up temporary files
shell: bash
run: |
sudo rm -rf /tmp/bundle
9 changes: 2 additions & 7 deletions .github/actions/meteor-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ inputs:
required: true
description: 'Node version'
type: string
NPM_TOKEN:
required: false
description: 'NPM token'

runs:
using: composite
Expand All @@ -32,7 +29,6 @@ runs:
node-version: ${{ inputs.node-version }}
cache-modules: true
install: true
NPM_TOKEN: ${{ inputs.NPM_TOKEN }}

# - name: Free disk space
# run: |
Expand Down Expand Up @@ -95,7 +91,7 @@ runs:
meteor node -v
git version
- uses: rharkor/caching-for-turbo@v1.5
- uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Translation check
shell: bash
Expand Down Expand Up @@ -128,8 +124,7 @@ runs:
tar czf /tmp/Rocket.Chat.tar.gz bundle
- name: Store build
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: build
path: /tmp/Rocket.Chat.tar.gz
overwrite: true
21 changes: 4 additions & 17 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
name: 'Setup Node'
description: 'Setup NodeJS'

inputs:
node-version:
required: true
description: 'Node version'
type: string
cache-modules:
required: false
description: 'Cache node_modules'
type: boolean
install:
required: false
description: 'Install dependencies'
type: boolean
deno-dir:
required: false
description: 'Deno directory'
type: string
default: ~/.deno-cache
NPM_TOKEN:
required: false
description: 'NPM token'

outputs:
node-version:
description: 'Node version'
value: ${{ steps.node-version.outputs.node-version }}

runs:
Expand All @@ -37,7 +32,6 @@ runs:
uses: actions/cache@v3
with:
path: |
.turbo/cache
node_modules
${{ env.DENO_DIR }}
apps/meteor/node_modules
Expand All @@ -54,13 +48,6 @@ runs:
node-version: ${{ inputs.node-version }}
cache: 'yarn'

- name: yarn login
shell: bash
if: inputs.NPM_TOKEN
run: |
echo "//registry.npmjs.org/:_authToken=${{ inputs.NPM_TOKEN }}" > ~/.npmrc
- name: yarn install
if: inputs.install
shell: bash
run: yarn
3 changes: 1 addition & 2 deletions .github/workflows/ci-code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ jobs:
node-version: ${{ inputs.node-version }}
cache-modules: true
install: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: Free disk space
# run: |
# sudo apt clean
# docker rmi $(docker image ls -aq)
# df -h

- uses: rharkor/caching-for-turbo@v1.5
- uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Cache TypeCheck
uses: actions/cache@v3
Expand Down
Loading

0 comments on commit f1e6e92

Please sign in to comment.