2020-02-09 13:21:39 +08:00
|
|
|
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:
|
2020-02-10 08:20:43 +08:00
|
|
|
go-version: ${{ matrix.version }}
|
2020-02-09 13:21:39 +08:00
|
|
|
|
2020-02-10 08:20:43 +08:00
|
|
|
- name: match ${{ matrix.version }}
|
|
|
|
run: go version
|
|
|
|
|
|
|
|
- name: validate version
|
|
|
|
run: go version | grep "go${{ matrix.version }}"
|