1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-10-06 22:17:19 +02:00
Files
focalboard/.github/workflows/ci.yml
Rajat Dabade bfaa37fc24 [MM-59253]: Remove plugin code from focalboard repo (#5027)
* refactor: updated mysql docker image version

* refactor: removed isPlugin code from webapp

* refactor: removed isFocalboardPlugin from test

* refactor: removed package-lock.json from root

* removed unnecessary component

* nit: removed comments

* reverted the mysql docker version to original

* nit

* revert setting.json changes

* 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 <stamatiou.antonis@gmail.com>

* linter fixes

---------

Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
2024-08-28 22:16:15 +05:30

119 lines
2.4 KiB
YAML

name: Check-in tests
on:
push:
branches:
- 'main'
- 'releases-**'
pull_request:
workflow_dispatch:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
EXCLUDE_ENTERPRISE: true
jobs:
ci-ubuntu-server:
runs-on: ubuntu-22.04
strategy:
matrix:
db:
- sqlite
- mysql
- mariadb
- postgres
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: server/go.mod
- name: "Test server: ${{matrix['db']}}"
run: make server-test-${{matrix['db']}}
ci-ubuntu-webapp:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: "focalboard"
- name: npm ci
run: cd focalboard/webapp && npm ci && cd -
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: focalboard/server/go.mod
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: focalboard/webapp/.nvmrc
- name: Build Linux server
run: cd focalboard; make server-linux-package
- name: Copy server binary for Cypress
run: cp focalboard/bin/linux/focalboard-server focalboard/bin/
- name: Upload server package
uses: actions/upload-artifact@v1
with:
name: focalboard-server-linux-amd64.tar.gz
path: ${{ github.workspace }}/focalboard/dist/focalboard-server-linux-amd64.tar.gz
- name: Lint & test webapp
run: cd focalboard; make webapp-ci
ci-windows-server:
runs-on: windows-2022
strategy:
matrix:
db:
- sqlite
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: "focalboard"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: focalboard/server/go.mod
- name: "Test server (minimum): ${{matrix['db']}}"
run: cd focalboard; make server-test-mini-${{matrix['db']}}
ci-mac-server:
runs-on: macos-12
strategy:
matrix:
db:
- sqlite
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: "focalboard"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: focalboard/server/go.mod
- name: "Test server (minimum): ${{matrix['db']}}"
run: cd focalboard; make server-test-mini-${{matrix['db']}}