Compare commits

..

1 Commits

Author SHA1 Message Date
Sergey Dolin
273eef6e95
Merge d6ad0fa4fe into db8764c1e2 2023-07-20 09:53:26 +00:00

View File

@ -1,4 +1,4 @@
name: Validate Windows installation
name: validate Windows installation
on:
push:
@ -13,7 +13,7 @@ on:
jobs:
create-link-if-not-default:
runs-on: windows-latest
name: 'Validate if symlink is created'
name: 'Setup ${{ matrix.go }}, cache: ${{ matrix.cache }}'
strategy:
matrix:
cache: [false, true]
@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: 'Setup ${{ matrix.cache }}, cache: ${{ matrix.go }}'
- name: non-default-cache-${{ matrix.cache }}-${{ matrix.go }}
uses: ./
with:
go-version: ${{ matrix.go }}
@ -81,7 +81,7 @@ jobs:
shell: bash
dont-create-link-if-default:
name: 'Validate if symlink is not created for default go'
name: 'Use default go, cache: ${{ matrix.cache }}'
runs-on: windows-latest
needs: find-default-go
strategy:
@ -90,13 +90,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: 'Setup default go, cache: ${{ matrix.cache }}'
uses: ./
- uses: ./
with:
go-version: ${{ needs.find-default-go.outputs.version }}
cache: ${{ matrix.cache }}
- name: 'Drive C: should have Go installation, cache: ${{ matrix.cache}}'
- name: 'Drive C: should have Go installation'
run: |
size=$(du -m -s 'C:\hostedtoolcache\windows\go\${{ needs.find-default-go.outputs.version }}\x64'|cut -f1 -d$'\t')
if [ $size -eq 0 ];then
@ -105,7 +104,7 @@ jobs:
fi
shell: bash
- name: 'Drive D: should not have Go installation, cache: ${{ matrix.cache}}'
- name: 'Drive D: should not have Go installation'
run: |
if [ -e 'D:\hostedtoolcache\windows\go\${{ needs.find-default-go.outputs.version }}\x64' ];then
echo 'D:\hostedtoolcache\windows\go\${{ needs.find-default-go.outputs.version }}\x64 should not exist for hosted version of go';