Skip to content

MM-69271: Editor authoring – page drafts, TipTap content handling, and presence #95

MM-69271: Editor authoring – page drafts, TipTap content handling, and presence

MM-69271: Editor authoring – page drafts, TipTap content handling, and presence #95

Workflow file for this run

name: ci
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- master
tags:
- "v*"
pull_request:
permissions:
contents: read
jobs:
lint:
if: ${{ github.repository_owner == 'mattermost' || github.event_name != 'schedule' }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: ci/setup
uses: mattermost/actions/plugin-ci/setup@0256d363493a1e6b9e361ea788c62a0a73bc00be
with:
go-version-file: go.mod
- name: ci/lint
uses: mattermost/actions/plugin-ci/lint@0256d363493a1e6b9e361ea788c62a0a73bc00be
test:
if: ${{ github.repository_owner == 'mattermost' || github.event_name != 'schedule' }}
runs-on: ubuntu-latest
permissions:
contents: read
# The store and service tests require a real Postgres (PG14+ for the
# hierarchy CYCLE clause) and never skip; the default test DSN is
# postgres://mmuser:mostest@localhost:5432/mattermost_test.
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: mmuser
POSTGRES_PASSWORD: mostest
POSTGRES_DB: mattermost_test
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: ci/setup
uses: mattermost/actions/plugin-ci/setup@0256d363493a1e6b9e361ea788c62a0a73bc00be
with:
go-version-file: go.mod
- name: ci/test
uses: mattermost/actions/plugin-ci/test@0256d363493a1e6b9e361ea788c62a0a73bc00be
build:
if: ${{ github.repository_owner == 'mattermost' || github.event_name != 'schedule' }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: ci/setup
uses: mattermost/actions/plugin-ci/setup@0256d363493a1e6b9e361ea788c62a0a73bc00be
with:
go-version-file: go.mod
- name: ci/build
uses: mattermost/actions/plugin-ci/build@0256d363493a1e6b9e361ea788c62a0a73bc00be
delivery:
if: ${{ github.repository_owner == 'mattermost' && github.event_name != 'schedule' && github.ref_name == 'master' }}
runs-on: ubuntu-latest
needs: [lint, test, build]
permissions:
contents: read
id-token: write
steps:
- name: ci/download-artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: dist
path: dist
- name: ci/prepare-artifact
run: mv *.tar.gz ${GITHUB_REPOSITORY#*/}-ci.tar.gz
working-directory: dist
- name: ci/aws-configure
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_RELEASE }}:role/mattermost-release-plugin-store-role
- name: ci/artifact-upload
shell: bash
run: |
aws s3 cp *.tar.gz s3://mattermost-plugins-delivery/ci/ --acl public-read --cache-control no-cache
working-directory: dist
release:
if: ${{ startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'mattermost' }}
runs-on: ubuntu-latest
needs: [lint, test, build]
permissions:
contents: read
id-token: write
steps:
- name: ci/download-artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: dist
path: dist
- name: ci/prepare-artifact
env:
REF_NAME: ${{ github.ref_name }}
run: mv *.tar.gz ${GITHUB_REPOSITORY#*/}-${REF_NAME}.tar.gz
working-directory: dist
- name: ci/aws-configure
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_RELEASE }}:role/mattermost-release-plugin-store-role
- name: ci/artifact-upload
shell: bash
run: |
aws s3 cp *.tar.gz s3://mattermost-plugins-delivery/release/ --acl public-read --cache-control no-cache
working-directory: dist