You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
setup-go/.github/workflows/versions.yml

33 lines
689 B
YAML

name: go-versions
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
run:
name: Go
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
version: [1.13, 1.12.9]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup-go ${{ matrix.version }}
uses: ./
with:
5 years ago
go-version: ${{ matrix.version }}
5 years ago
- name: match ${{ matrix.version }}
run: go version
- name: validate version
run: go version | grep "go${{ matrix.version }}"