mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
workflow: update sg-setup (#42860)
* use asdf action * only do asdf step * switch back to pull request event
This commit is contained in:
parent
46ffe3c35b
commit
756096bc4e
12
.github/workflows/sg-setup.yml
vendored
12
.github/workflows/sg-setup.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user