Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
heart

GitHub Action

Set up Go - Gobrew

v1.0.0

Set up Go - Gobrew

heart

Set up Go - Gobrew

gobrew, setup go for Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Set up Go - Gobrew

uses: kevincobain2000/action-gobrew@v1.0.0

Learn more about this action in kevincobain2000/action-gobrew

Choose a version

gobrew

Action for gobrew. Setup Go for Github Actions.

Quick Setup: One command to install Go and manage versions.

Hassle Free: Doesn't require root or sudo, or shell re-hash.

Platform: Supports (arm64, arch64, Mac, Mac M1, and Ubuntu).

Flexible: Manage multiple Go versions including beta and rc.

Yaml

on: [push]
name: CI
jobs:
  test:
    strategy:
      matrix:
        go-version: [1.13, 1.14, 1.15, 1.16.7, 1.17, 1.18, 1.18@latest, 1.19beta1, 1.19@dev-latest, latest, dev-latest]
        os: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v2
      - uses: kevincobain2000/action-gobrew@v1
        with:
          version: ${{ matrix.go-version }}

      - name: Go
        run: go version

About Go Versions