forked from actions/setup-go
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmitry Shibanov
committed
Jun 23, 2020
1 parent
a2c84d5
commit e8c9273
Showing
5 changed files
with
106 additions
and
148 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,76 @@ | ||
name: go-versions | ||
name: Validate 'setup-go' | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
run: | ||
name: Go | ||
runs-on: ${{ matrix.operating-system }} | ||
local-cache: | ||
name: Setup local-cache version | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest, windows-latest, macos-latest] | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
go: [1.11.13, 1.12.17, 1.13.12] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: setup-go 1.13.6 | ||
uses: ./ | ||
with: | ||
go-version: 1.13.6 | ||
- name: setup-go ${{ matrix.go }} | ||
uses: ./ | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: verify go | ||
run: __tests__/verify-go.sh go1.13.6 | ||
shell: bash | ||
- name: verify go | ||
run: __tests__/verify-go.sh ${{ matrix.go }} | ||
shell: bash | ||
|
||
- name: setup-go 1.13 | ||
uses: ./ | ||
with: | ||
go-version: 1.13 | ||
- name: Run simple code | ||
run: go run __tests__/simple/simple.go | ||
|
||
- name: verify go | ||
run: __tests__/verify-go.sh go1.13.* | ||
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@v2 | ||
|
||
- name: setup-go ${{ matrix.go }} | ||
uses: ./ | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: verify go | ||
run: __tests__/verify-go.sh ${{ matrix.go }} | ||
shell: bash | ||
|
||
- name: Run simple code | ||
run: go run __tests__/simple/simple.go | ||
|
||
- name: setup-go 1.12.9 | ||
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, 1.15beta1] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: setup-go ${{ matrix.go }} | ||
uses: ./ | ||
with: | ||
go-version: 1.12.9 | ||
|
||
go-version: ${{ matrix.go }} | ||
- name: verify go | ||
run: __tests__/verify-go.sh go1.12.9 | ||
shell: bash | ||
|
||
- name: dump env | ||
run: __tests__/verify-go.sh ${{ matrix.go }} | ||
shell: bash | ||
run: | | ||
echo $PATH | ||
echo go versions in tool cache: | ||
echo $(ls $RUNNER_TOOL_CACHE/go) | ||
- name: Run simple code | ||
run: go run __tests__/simple/simple.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters