From 03a795a206c8f7d9b61d8ffc7e50db8acd410095 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Thu, 20 Feb 2025 10:00:23 +0100 Subject: [PATCH 1/2] feat: Install mage in required steps --- .github/workflows/plugin-cd.yml | 3 +++ .github/workflows/plugin-ci.yml | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/plugin-cd.yml b/.github/workflows/plugin-cd.yml index 9f636fe..1c1016c 100644 --- a/.github/workflows/plugin-cd.yml +++ b/.github/workflows/plugin-cd.yml @@ -47,6 +47,9 @@ jobs: with: golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@latest + - 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..d68fd91 100644 --- a/.github/workflows/plugin-ci.yml +++ b/.github/workflows/plugin-ci.yml @@ -62,6 +62,9 @@ jobs: golangci-lint-version: ${{ inputs.golangci-lint-version }} golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@latest + - name: ci/lint uses: mattermost/actions/plugin-ci/lint@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0 @@ -79,6 +82,9 @@ jobs: with: golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@latest + - name: ci/test uses: mattermost/actions/plugin-ci/test@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0 @@ -96,6 +102,9 @@ jobs: with: golang-version: ${{ inputs.golang-version }} + - name: Install mage + run: go install github.com/magefile/mage@latest + - name: ci/build uses: mattermost/actions/plugin-ci/build@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0 From 6df828a36c084abc9f40d2a3d901c6ced74b7983 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Mon, 24 Mar 2025 11:41:10 +0100 Subject: [PATCH 2/2] feat: add input for mage version --- .github/workflows/plugin-cd.yml | 9 ++++++++- .github/workflows/plugin-ci.yml | 13 ++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/plugin-cd.yml b/.github/workflows/plugin-cd.yml index 1c1016c..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: | @@ -48,7 +55,7 @@ jobs: golang-version: ${{ inputs.golang-version }} - name: Install mage - run: go install github.com/magefile/mage@latest + run: go install github.com/magefile/mage@${{ inputs.mage-version }} - name: ci/build env: diff --git a/.github/workflows/plugin-ci.yml b/.github/workflows/plugin-ci.yml index d68fd91..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: | @@ -63,7 +70,7 @@ jobs: golang-version: ${{ inputs.golang-version }} - name: Install mage - run: go install github.com/magefile/mage@latest + run: go install github.com/magefile/mage@${{ inputs.mage-version }} - name: ci/lint uses: mattermost/actions/plugin-ci/lint@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0 @@ -83,7 +90,7 @@ jobs: golang-version: ${{ inputs.golang-version }} - name: Install mage - run: go install github.com/magefile/mage@latest + run: go install github.com/magefile/mage@${{ inputs.mage-version }} - name: ci/test uses: mattermost/actions/plugin-ci/test@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0 @@ -103,7 +110,7 @@ jobs: golang-version: ${{ inputs.golang-version }} - name: Install mage - run: go install github.com/magefile/mage@latest + run: go install github.com/magefile/mage@${{ inputs.mage-version }} - name: ci/build uses: mattermost/actions/plugin-ci/build@d5174b860704729f4c14ef8489ae075742bfa08a # v1.0.0