Skip to content

Mage Action

Actions
GitHub Action for Mage, a Make/rake-like build tool using Go
v3.0.0
Latest
Star (33)

Mage Logo

Mage Action

GitHub Action for Mage

GitHub release GitHub marketplace Test workflow Codecov Become a sponsor


Mage Action

Usage

Quick start

name: mage

on:
  pull_request:
  push:

jobs:
  mage:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v4
      -
        name: Set up Go
        uses: actions/setup-go@v5
      -
        name: Run Mage
        uses: magefile/mage-action@v3
        with:
          version: latest
          args: build

Install Only

name: mage

on:
  pull_request:
  push:

jobs:
  mage:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v4
      -
        name: Set up Go
        uses: actions/setup-go@v5
      -
        name: Run Mage
        uses: magefile/mage-action@v3
        with:
          install-only: true
      -
        name: Show Mage version
        run: mage --version

Customizing

inputs

The following inputs can be used as step.with keys:

Name Type Default Description
version String latest Mage version. Example: v1.9.0
args String Arguments to pass to Mage
workdir String . Working directory (below repository root)
install-only Bool false Just install Mage

License

MIT. See LICENSE for more details.

Mage Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub Action for Mage, a Make/rake-like build tool using Go
v3.0.0
Latest

Mage Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.