2020-06-29 15:41:13 +00:00
|
|
|
name: Validate 'setup-go'
|
2020-02-09 05:21:39 +00:00
|
|
|
on:
|
2020-06-29 15:41:13 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
schedule:
|
|
|
|
- cron: 0 0 * * *
|
|
|
|
|
2020-02-09 05:21:39 +00:00
|
|
|
jobs:
|
2020-06-29 15:41:13 +00:00
|
|
|
local-cache:
|
|
|
|
name: Setup local-cache version
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-02-09 05:21:39 +00:00
|
|
|
strategy:
|
2020-06-29 15:41:13 +00:00
|
|
|
fail-fast: false
|
2020-02-09 05:21:39 +00:00
|
|
|
matrix:
|
2020-06-29 15:41:13 +00:00
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
|
|
go: [1.12, 1.13, 1.14]
|
2020-02-09 05:21:39 +00:00
|
|
|
steps:
|
2020-06-29 15:41:13 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-02-09 05:21:39 +00:00
|
|
|
|
2020-06-29 15:41:13 +00:00
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
2020-02-09 05:21:39 +00:00
|
|
|
|
2020-06-29 15:41:13 +00:00
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|
2020-02-10 00:25:28 +00:00
|
|
|
|
2020-06-29 15:41:13 +00:00
|
|
|
setup-versions-from-manifest:
|
|
|
|
name: Setup ${{ matrix.go }} ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
|
|
go: [1.12.16, 1.13.11, 1.14.3]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
|
|
|
|
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|
2020-02-10 00:25:28 +00:00
|
|
|
|
2020-06-29 15:41:13 +00:00
|
|
|
setup-versions-from-dist:
|
|
|
|
name: Setup ${{ matrix.go }} ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
|
|
go: [1.7, 1.8.6]
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup-go ${{ matrix.go }}
|
2020-02-10 00:25:28 +00:00
|
|
|
uses: ./
|
|
|
|
with:
|
2020-06-29 15:41:13 +00:00
|
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
2020-03-26 14:55:21 +00:00
|
|
|
shell: bash
|