From c0b3c8b7608c2260536775ff8a0ea45c0f3927df Mon Sep 17 00:00:00 2001 From: Spiros Economakis <812075+spirosoik@users.noreply.github.com> Date: Tue, 7 Feb 2023 11:39:25 +0200 Subject: [PATCH] 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 --- .circleci/config.yml | 12 ------------ .github/workflows/cd.yml | 18 ++++++++++++++++++ .github/workflows/ci.yml | 18 ++++++++++++++++++ .nvmrc | 1 + 4 files changed, 37 insertions(+), 12 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/cd.yml create mode 100644 .github/workflows/ci.yml create mode 100644 .nvmrc diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3ac9a09..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..0268c8b --- /dev/null +++ b/.github/workflows/cd.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4752d37 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..049c407 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +14.21.1