-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed
mattermost-plugin
folder (#5029)
* refactor: removed mattermost-plugin folder * reverted the mysql image version * Removed `mattermost-plugin` from make rules (#5030) * removed mattermost-plugin from make rules * removed: mattermost-plugin code from the repo * updated snapshot and fix test (#5031) * updated snapshot and fix test * Updated snapshot and removed unnecessary tests * chore: minor fix ci * refactor: updated the mac-os version supported by github actions * reverted: mac os version * refactor: updated mac os version and also changed docker-compose to docker compose * removed version from docker compose as no long needed * reverted mysql docker version * updated mysql version * testing * revert testing * refactor: added version for mysql docker compose file * test: test commit * updated snapshot and fix test (#5032) * removed mattermost-plugin from make rules * removed: mattermost-plugin code from the repo * updated snapshot and fix test * Updated snapshot and removed unnecessary tests * chore: minor fix ci * refactor: removed isplugin code from server * final attempt * ci: Minor ci tweaks and upgrades --------- Co-authored-by: Antonis Stamatiou <[email protected]>
- Loading branch information
1 parent
61bd97d
commit 613fd19
Showing
151 changed files
with
384 additions
and
53,155 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ node_modules | |
.github/ | ||
mac/ | ||
win-wpf/ | ||
mattermost-plugin/ | ||
website/ | ||
linux/ | ||
go.work | ||
|
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 |
---|---|---|
|
@@ -22,16 +22,10 @@ jobs: | |
|
||
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
|
||
- name: npm ci | ||
run: cd focalboard/webapp; npm ci --no-optional | ||
|
||
|
@@ -72,7 +66,7 @@ jobs: | |
path: ${{ github.workspace }}/focalboard/linux/dist/focalboard-linux.tar.gz | ||
|
||
macos: | ||
runs-on: macos-11 | ||
runs-on: macos-12 | ||
|
||
steps: | ||
|
||
|
@@ -83,15 +77,9 @@ jobs: | |
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: npm ci | ||
run: cd focalboard/webapp; npm ci --no-optional | ||
|
||
|
@@ -126,15 +114,6 @@ jobs: | |
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
|
@@ -170,56 +149,3 @@ jobs: | |
with: | ||
name: focalboard-win.zip | ||
path: ${{ github.workspace }}/focalboard/win-wpf/dist/focalboard-win.zip | ||
|
||
plugin: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: "focalboard" | ||
|
||
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_DEV_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: npm ci | ||
run: cd focalboard/webapp; npm ci --no-optional | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.11.0 | ||
|
||
- name: Build webapp | ||
run: cd focalboard; make webapp | ||
|
||
- name: npm ci plugin dependencies | ||
run: cd focalboard/mattermost-plugin/webapp; npm ci --no-optional | ||
|
||
- name: Build plugin | ||
run: cd focalboard/mattermost-plugin; make dist | ||
env: | ||
BUILD_NUMBER: ${{ github.run_id }} | ||
|
||
- name: Rename plugin file | ||
run: cd focalboard/mattermost-plugin/dist; mv focalboard-*.tar.gz mattermost-plugin-focalboard.tar.gz | ||
|
||
- name: Upload plugin artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mattermost-plugin-focalboard.tar.gz | ||
path: ${{ github.workspace }}/focalboard/mattermost-plugin/dist/mattermost-plugin-focalboard.tar.gz |
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 |
---|---|---|
|
@@ -20,15 +20,9 @@ jobs: | |
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: npm ci | ||
run: cd focalboard/webapp; npm ci --no-optional | ||
|
||
|
@@ -69,7 +63,7 @@ jobs: | |
path: ${{ github.workspace }}/focalboard/linux/dist/focalboard-linux.tar.gz | ||
|
||
macos: | ||
runs-on: macos-11 | ||
runs-on: macos-12 | ||
|
||
steps: | ||
|
||
|
@@ -81,15 +75,9 @@ jobs: | |
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: npm ci | ||
run: cd focalboard/webapp; npm ci --no-optional | ||
|
||
|
@@ -125,15 +113,9 @@ jobs: | |
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
|
@@ -169,57 +151,4 @@ jobs: | |
with: | ||
name: focalboard-win.zip | ||
path: ${{ github.workspace }}/focalboard/win-wpf/dist/focalboard-win.zip | ||
|
||
plugin-release: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: "focalboard" | ||
|
||
- name: Replace token 1 server | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 1 webapp | ||
run: sed -i -e "s,placeholder_rudder_dataplane_url,${{ secrets.RUDDER_DATAPLANE_URL }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: Replace token 2 server | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/server/services/telemetry/telemetry.go | ||
|
||
- name: Replace token 2 webapp | ||
run: sed -i -e "s,placeholder_rudder_key,${{ secrets.RUDDER_PROD_KEY }},g" ${{ github.workspace }}/focalboard/mattermost-plugin/webapp/src/index.tsx | ||
|
||
- name: npm ci | ||
run: cd focalboard/webapp; npm ci --no-optional | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.11.0 | ||
|
||
- name: Build webapp | ||
run: cd focalboard; make webapp | ||
|
||
- name: npm ci plugin dependencies | ||
run: cd focalboard/mattermost-plugin/webapp && npm ci | ||
|
||
- name: Build plugin | ||
run: cd focalboard/mattermost-plugin; make dist | ||
env: | ||
BUILD_NUMBER: ${{ github.run_id }} | ||
|
||
- name: Rename plugin file | ||
run: cd focalboard/mattermost-plugin/dist; mv focalboard-*.tar.gz mattermost-plugin-focalboard.tar.gz | ||
|
||
- name: Upload plugin artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mattermost-plugin-focalboard.tar.gz | ||
path: ${{ github.workspace }}/focalboard/mattermost-plugin/dist/mattermost-plugin-focalboard.tar.gz | ||
|
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
Oops, something went wrong.