workflow: update sg-setup (#42860)

* use asdf action

* only do asdf step

* switch back to pull request event
This commit is contained in:
William Bezuidenhout 2022-10-12 16:35:32 +02:00 committed by GitHub
parent 46ffe3c35b
commit 756096bc4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,10 @@
name: sg-setup
on:
push:
pull_request:
paths:
- '.github/workflows/sg-setup.yml'
- 'dev/sg/dependencies/**.go'
- 'dev/sg/internal/check/**.go'
jobs:
test:
strategy:
@ -25,9 +24,14 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.18.7
- name: Install asdf plugins
uses: asdf-vm/actions/install@v1
if: ${{ runner.os == 'Linux' }}
- name: Test dependencies (${{ matrix.os }})
# We add the path since the bash environment does not properly get sourced due to the env not being interactive
run: |
go test -timeout=30m -v \
go test -timeout=30m -v \
./dev/sg/dependencies/... -sg-setup=${{ matrix.os }}