2020-06-29 11:41:13 -04:00
|
|
|
name: Validate 'setup-go'
|
2020-02-09 00:21:39 -05:00
|
|
|
on:
|
2020-06-29 11:41:13 -04:00
|
|
|
push:
|
|
|
|
branches:
|
2020-07-22 08:04:56 -04:00
|
|
|
- main
|
2020-06-29 11:41:13 -04:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
schedule:
|
|
|
|
- cron: 0 0 * * *
|
|
|
|
|
2020-02-09 00:21:39 -05:00
|
|
|
jobs:
|
2020-06-29 11:41:13 -04:00
|
|
|
local-cache:
|
|
|
|
name: Setup local-cache version
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-02-09 00:21:39 -05:00
|
|
|
strategy:
|
2020-06-29 11:41:13 -04:00
|
|
|
fail-fast: false
|
2020-02-09 00:21:39 -05:00
|
|
|
matrix:
|
2020-06-29 11:41:13 -04:00
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
|
|
go: [1.12, 1.13, 1.14]
|
2020-02-09 00:21:39 -05:00
|
|
|
steps:
|
2020-06-29 11:41:13 -04:00
|
|
|
- name: Checkout
|
2022-03-31 15:29:52 -04:00
|
|
|
uses: actions/checkout@v3
|
2020-02-09 00:21:39 -05:00
|
|
|
|
2020-06-29 11:41:13 -04:00
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
2020-02-09 00:21:39 -05:00
|
|
|
|
2020-06-29 11:41:13 -04:00
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|
2020-02-09 19:25:28 -05:00
|
|
|
|
2022-02-09 06:59:04 -05:00
|
|
|
check-latest:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
go-version: [1.16, 1.17]
|
|
|
|
steps:
|
2022-03-31 15:29:52 -04:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-09 06:59:04 -05:00
|
|
|
- name: Setup Go and check latest
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
check-latest: true
|
|
|
|
- name: Verify Go
|
|
|
|
run: go version
|
|
|
|
|
2020-06-29 11:41:13 -04: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
|
2022-03-31 15:29:52 -04:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2020-06-29 11:41:13 -04:00
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
2022-03-31 15:29:52 -04:00
|
|
|
|
2020-06-29 11:41:13 -04:00
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|
2020-02-09 19:25:28 -05:00
|
|
|
|
2020-06-29 11:41:13 -04: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]
|
2022-02-22 10:25:23 -05:00
|
|
|
go: [1.9, 1.8.6]
|
2020-06-29 11:41:13 -04:00
|
|
|
steps:
|
2021-11-08 05:28:08 -05:00
|
|
|
- name: Checkout
|
2022-03-31 15:29:52 -04:00
|
|
|
uses: actions/checkout@v3
|
2021-11-08 05:28:08 -05:00
|
|
|
|
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
|
|
|
|
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|