forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1006 Bytes
/
sg-setup.yml
File metadata and controls
36 lines (32 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}