2020-06-29 18:41:13 +03:00
|
|
|
name: Validate 'setup-go'
|
2022-12-15 16:12:57 +01:00
|
|
|
|
2020-02-09 00:21:39 -05:00
|
|
|
on:
|
2020-06-29 18:41:13 +03:00
|
|
|
push:
|
|
|
|
branches:
|
2020-07-22 08:04:56 -04:00
|
|
|
- main
|
2020-06-29 18:41:13 +03:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
schedule:
|
|
|
|
- cron: 0 0 * * *
|
|
|
|
|
2020-02-09 00:21:39 -05:00
|
|
|
jobs:
|
2022-12-12 10:58:49 +01:00
|
|
|
stable:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
2022-12-12 10:58:49 +01:00
|
|
|
steps:
|
2023-09-05 11:42:39 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-12-12 10:58:49 +01:00
|
|
|
- name: Setup Go Stable
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: stable
|
|
|
|
- name: Verify Go
|
|
|
|
run: go version
|
|
|
|
|
|
|
|
oldstable:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
2022-12-12 10:58:49 +01:00
|
|
|
steps:
|
2023-09-05 11:42:39 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-12-12 10:58:49 +01:00
|
|
|
- name: Setup Go oldStable
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: oldstable
|
|
|
|
- name: Verify Go
|
|
|
|
run: go version
|
2023-03-08 10:45:16 +02:00
|
|
|
|
2022-12-12 10:58:49 +01:00
|
|
|
aliases-arch:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
2022-12-12 10:58:49 +01:00
|
|
|
version: [stable, oldstable]
|
|
|
|
architecture: [x64, x32]
|
|
|
|
exclude:
|
2023-03-08 10:45:16 +02:00
|
|
|
- os: macos-latest
|
|
|
|
architecture: x32
|
2024-10-24 09:09:31 +05:30
|
|
|
- os: macos-13
|
|
|
|
architecture: x32
|
2022-12-12 10:58:49 +01:00
|
|
|
steps:
|
2023-09-05 11:42:39 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-12-12 10:58:49 +01:00
|
|
|
- name: Setup Go ${{ matrix.version }} ${{ matrix.architecture }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.version }}
|
|
|
|
architecture: ${{ matrix.architecture }}
|
|
|
|
- name: Verify Go
|
|
|
|
run: go version
|
|
|
|
|
2020-06-29 18:41:13 +03:00
|
|
|
local-cache:
|
|
|
|
name: Setup local-cache version
|
|
|
|
runs-on: ${{ matrix.os }}
|
2020-02-09 00:21:39 -05:00
|
|
|
strategy:
|
2020-06-29 18:41:13 +03:00
|
|
|
fail-fast: false
|
2020-02-09 00:21:39 -05:00
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest, macos-13]
|
|
|
|
go: [1.21.13, 1.22.8, 1.23.2]
|
|
|
|
include:
|
|
|
|
- os: windows-latest
|
|
|
|
go: 1.20.14
|
|
|
|
exclude:
|
|
|
|
- os: windows-latest
|
|
|
|
go: 1.23.2
|
2020-02-09 00:21:39 -05:00
|
|
|
steps:
|
2020-06-29 18:41:13 +03:00
|
|
|
- name: Checkout
|
2023-09-05 11:42:39 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-02-09 00:21:39 -05:00
|
|
|
|
2020-06-29 18:41:13 +03:00
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
2020-02-09 00:21:39 -05:00
|
|
|
|
2020-06-29 18:41:13 +03:00
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|
2020-02-09 19:25:28 -05:00
|
|
|
|
2022-02-09 14:59:04 +03:00
|
|
|
check-latest:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
|
|
go-version: ['1.20', '1.21', '1.22', '1.23']
|
2022-02-09 14:59:04 +03:00
|
|
|
steps:
|
2023-09-05 11:42:39 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-02-09 14:59:04 +03:00
|
|
|
- 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 17:04:39 +09:00
|
|
|
go-version-file:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
2022-05-12 17:04:39 +09:00
|
|
|
steps:
|
2023-09-05 11:42:39 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-12 17:04:39 +09:00
|
|
|
- name: Setup Go and check latest
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version-file: __tests__/data/go.mod
|
|
|
|
- name: verify go
|
2024-05-10 11:25:20 -05:00
|
|
|
run: __tests__/verify-go.sh 1.20.14
|
2022-05-12 17:04:39 +09:00
|
|
|
shell: bash
|
|
|
|
|
2022-11-01 19:13:57 +09:00
|
|
|
go-version-file-with-gowork:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
2022-11-01 19:13:57 +09:00
|
|
|
steps:
|
2023-09-05 11:42:39 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-01 19:13:57 +09:00
|
|
|
- name: Setup Go and check latest
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version-file: __tests__/data/go.work
|
|
|
|
- name: verify go
|
2024-05-10 11:25:20 -05:00
|
|
|
run: __tests__/verify-go.sh 1.21
|
2022-11-01 19:13:57 +09:00
|
|
|
shell: bash
|
|
|
|
|
2020-06-29 18:41:13 +03:00
|
|
|
setup-versions-from-manifest:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [macos-latest, windows-latest, ubuntu-latest, macos-13]
|
|
|
|
go: [1.20.14, 1.21.10, 1.22.8, 1.23.2]
|
2020-06-29 18:41:13 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-05 11:42:39 -04:00
|
|
|
uses: actions/checkout@v4
|
2022-04-01 06:29:52 +11:00
|
|
|
|
2020-06-29 18:41:13 +03:00
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
2022-04-01 06:29:52 +11:00
|
|
|
|
2020-06-29 18:41:13 +03:00
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|
2020-02-09 19:25:28 -05:00
|
|
|
|
2020-06-29 18:41:13 +03:00
|
|
|
setup-versions-from-dist:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [windows-latest, ubuntu-latest, macos-13]
|
|
|
|
go: [1.11.12]
|
2020-06-29 18:41:13 +03:00
|
|
|
steps:
|
2021-11-08 19:28:08 +09:00
|
|
|
- name: Checkout
|
2023-09-05 11:42:39 -04:00
|
|
|
uses: actions/checkout@v4
|
2021-11-08 19:28:08 +09:00
|
|
|
|
|
|
|
- name: setup-go ${{ matrix.go }}
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
|
|
|
|
|
|
|
- name: verify go
|
|
|
|
run: __tests__/verify-go.sh ${{ matrix.go }}
|
|
|
|
shell: bash
|
2022-08-12 12:29:48 +02:00
|
|
|
|
|
|
|
architecture:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-10-24 09:09:31 +05:30
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
|
|
go-version: [1.20.14, 1.21, 1.22, 1.23]
|
|
|
|
include:
|
|
|
|
- os: macos-latest
|
|
|
|
architecture: arm64
|
|
|
|
- os: ubuntu-latest
|
|
|
|
architecture: x64
|
|
|
|
- os: windows-latest
|
|
|
|
architecture: x64
|
|
|
|
- os: macos-13
|
|
|
|
architecture: x64
|
2022-08-12 12:29:48 +02:00
|
|
|
steps:
|
2023-09-05 11:42:39 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-08-12 12:29:48 +02:00
|
|
|
- name: Setup Go and check latest
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2024-10-24 09:09:31 +05:30
|
|
|
architecture: ${{ matrix.architecture }}
|
2022-08-12 12:29:48 +02:00
|
|
|
- name: Verify Go
|
2022-11-01 19:13:57 +09:00
|
|
|
run: go version
|