sourcegraph/.github/workflows/sg-setup.yml
Noah S-C 3efa3c6ebc
sg: brew link postgresql@12 (#61829)
## Test plan

CI and tested commands manually
2024-04-12 14:41:47 +01:00

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 }}