diff --git a/.github/workflows/plugin-cd.yml b/.github/workflows/plugin-cd.yml index 9f636fe..0d0752e 100644 --- a/.github/workflows/plugin-cd.yml +++ b/.github/workflows/plugin-cd.yml @@ -22,6 +22,13 @@ on: required: false type: string + mage-version: + default: "v1.15.0" + description: | + Set the version for mage + required: false + type: string + region: default: us-east-1 description: | @@ -47,6 +54,9 @@ jobs: with: golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@${{ inputs.mage-version }} + - name: ci/build env: MM_RUDDER_PLUGINS_PROD: ${{ secrets.MM_RUDDER_PLUGINS_PROD }} diff --git a/.github/workflows/plugin-ci.yml b/.github/workflows/plugin-ci.yml index d135793..0e15201 100644 --- a/.github/workflows/plugin-ci.yml +++ b/.github/workflows/plugin-ci.yml @@ -29,6 +29,13 @@ on: required: false type: string + mage-version: + default: "v1.15.0" + description: | + Set the version for mage + required: false + type: string + region: default: us-east-1 description: | @@ -62,6 +69,9 @@ jobs: golangci-lint-version: ${{ inputs.golangci-lint-version }} golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@${{ inputs.mage-version }} + - name: ci/lint uses: mattermost/actions/plugin-ci/lint@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0 @@ -79,6 +89,9 @@ jobs: with: golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@${{ inputs.mage-version }} + - name: ci/test uses: mattermost/actions/plugin-ci/test@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0 @@ -96,6 +109,9 @@ jobs: with: golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@${{ inputs.mage-version }} + - name: ci/build uses: mattermost/actions/plugin-ci/build@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0