-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (34 loc) · 980 Bytes
/
go.yml
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
37
38
39
40
on: [push, pull_request]
name: GoBeansProxy Test
jobs:
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
python-version: [3.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Get test tools
run: go get -u -v golang.org/x/tools/cmd/goimports
- name: Prepare Test
run: pip install --user -r tests/pip-req.txt
- name: Test
run: |
export PATH=${PATH}:`go env GOPATH`/bin
diff <(goimports -d .) <(printf "")
go mod vendor
go get -u -v github.com/douban/gobeansdb
make test
- name: Install
run: make install