mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:11:48 +00:00
37 lines
1006 B
YAML
37 lines
1006 B
YAML
name: sg-setup
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/sg-setup.yml'
|
|
- 'dev/sg/dependencies/**.go'
|
|
- 'dev/sg/internal/check/**.go'
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
# See https://github.com/actions/virtual-environments#available-environments for
|
|
# available environments.
|
|
os:
|
|
- macos-14
|
|
- ubuntu-22.04
|
|
fail-fast: false
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v4
|
|
with: { go-version: '1.22' }
|
|
|
|
- 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 \
|
|
./dev/sg/dependencies/... -sg-setup=${{ matrix.os }}
|