Migrate from CircleCI to Github Actions (#246)

CI/CD reusable workflows in Github Actions for Plugin software lifecycle

Ticket: https://mattermost.atlassian.net/browse/CLD-4816
This commit is contained in:
Spiros Economakis 2023-02-07 11:32:30 +02:00 committed by GitHub
parent 3e09db8fd1
commit 409b31e348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 52 deletions

View File

@ -1,52 +0,0 @@
version: 2.1
orbs:
plugin-ci: mattermost/plugin-ci@volatile
workflows:
version: 2
ci:
jobs:
- plugin-ci/lint:
filters:
tags:
only: /^v.*/
- plugin-ci/coverage:
filters:
tags:
only: /^v.*/
- plugin-ci/build:
filters:
tags:
only: /^v.*/
- plugin-ci/deploy-ci:
filters:
branches:
only: master
context: plugin-ci
requires:
- plugin-ci/lint
- plugin-ci/coverage
- plugin-ci/build
- plugin-ci/deploy-release:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
context: plugin-ci
requires:
- plugin-ci/lint
- plugin-ci/coverage
- plugin-ci/build
- plugin-ci/deploy-release-github:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
context: matterbuild-github-token
requires:
- plugin-ci/lint
- plugin-ci/coverage
- plugin-ci/build

18
.github/workflows/cd.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: cd
on:
workflow_run:
workflows: ["ci"]
branches-ignore: ["*"]
types:
- completed
push:
tags:
- "^v.*"
permissions:
contents: read
jobs:
plugin-cd:
uses: mattermost/actions-workflows/.github/workflows/plugin-cd.yml@main
secrets: inherit

18
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: ci
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- master
tags:
- "^v.*"
pull_request:
permissions:
contents: read
jobs:
plugin-ci:
uses: mattermost/actions-workflows/.github/workflows/plugin-ci.yml@main
secrets: inherit

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
14.21.1

1
lock-missing.txt Normal file
View File

@ -0,0 +1 @@
mattermost-plugin-mscalendar