-
Notifications
You must be signed in to change notification settings - Fork 101
feat: magefile #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: magefile #180
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,20 @@ on: | |
- cron: "0 0 * * *" | ||
push: | ||
branches: | ||
- master | ||
- main | ||
tags: | ||
- "v*" | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
IS_CI: true | ||
|
||
jobs: | ||
plugin-ci: | ||
uses: mattermost/actions-workflows/.github/workflows/plugin-ci.yml@main | ||
uses: mattermost/actions-workflows/.github/workflows/plugin-ci.yml@mage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CI needs to install @fmartingr Is mattermost/actions-workflows#53 ready to get reviewed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW: If we commit to the pattern from mattermost/mattermost-plugin-starter-template#217, we don't need the CI changes. Plugins can control the mage version themself. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this workflow update handles having
Unsure how this solves the issue completely if we avoid using |
||
secrets: inherit | ||
with: | ||
mage-version: v1.15.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,14 @@ linters-settings: | |
gofmt: | ||
simplify: true | ||
goimports: | ||
local-prefixes: github.com/mattermost/mattermost-plugin-demo | ||
local-prefixes: github.com/mattermost/mattermost-starter-template | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this an accidental copy-paste? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably. or related to this. |
||
govet: | ||
check-shadowing: true | ||
enable-all: true | ||
disable: | ||
- fieldalignment | ||
misspell: | ||
locale: US | ||
revive: | ||
rules: | ||
- name: unused-parameter | ||
disabled: true | ||
|
||
linters: | ||
disable-all: true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To confirm, is the
demo
plugin's default branch changing frommaster
tomain
? (I'm not sure it's worth doing this unless we were going to be consistent everywhere.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is caused by mage taking care of the common files (aka. ci pipelines). The ci files are present here and the tooling updates it if there's a different with the file in the plugin repository.