setup-go/.github/workflows/versions.yml

110 lines
2.5 KiB
YAML
Raw Normal View History

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