Skip to content

Commit

Permalink
Migrate from CircleCI to Github Actions (#11)
Browse files Browse the repository at this point in the history
CI/CD reusable workflows in Github Actions for Plugin software lifecycle

Ticket: https://mattermost.atlassian.net/browse/CLD-4816

---------

Co-authored-by: Ben Schumacher <[email protected]>
  • Loading branch information
spirosoik and hanzei authored Feb 8, 2023
1 parent 2970cc9 commit 0b7bb96
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 58 deletions.
12 changes: 0 additions & 12 deletions .circleci/config.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 4 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,42 @@ linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/mattermost/mattermost-starter-template
golint:
min-confidence: 0
local-prefixes: github.com/mattermost/mattermost-plugin-demo
govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment
misspell:
locale: US

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- errcheck
- gocritic
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- revive
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace

issues:
exclude-rules:
- path: server/manifest.go
linters:
- deadcode
- unused
- varcheck
- path: server/configuration.go
linters:
- unused
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.21.1
Loading

0 comments on commit 0b7bb96

Please sign in to comment.