Migrate from CircleCI to Github Actions (#173)
CI/CD reusable workflows in Github Actions for Plugin software lifecycle Ticket: https://mattermost.atlassian.net/browse/CLD-4816
This commit is contained in:
parent
e7fd65fd4e
commit
c0b3c8b760
4 changed files with 37 additions and 12 deletions
|
@ -1,12 +0,0 @@
|
|||
version: 2.1
|
||||
|
||||
orbs:
|
||||
plugin-ci: mattermost/plugin-ci@0.1.12
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
ci:
|
||||
jobs:
|
||||
- plugin-ci/lint
|
||||
- plugin-ci/test
|
||||
- plugin-ci/build
|
18
.github/workflows/cd.yml
vendored
Normal file
18
.github/workflows/cd.yml
vendored
Normal 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
18
.github/workflows/ci.yml
vendored
Normal 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
1
.nvmrc
Normal file
|
@ -0,0 +1 @@
|
|||
14.21.1
|
Reference in a new issue