-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (36 loc) · 1.3 KB
/
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
name: Test diplicity
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
check-latest: true
- name: Check Go version
run: go version
- name: Set up GoogleCloudPlatform
uses: google-github-actions/setup-gcloud@v0
- name: Debug log GoogleCloudPlatform info
run: gcloud info
- name: Install App Engine Go
run: gcloud components install app-engine-go
- name: Extract GoogleCloudPlatform installation root
run: echo "GCLOUD_ROOT=$(gcloud info | grep 'Installation Root:' | sed -e 's/.*\[\([^]]\+\).*/\1/')" >> $GITHUB_ENV
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python2.7
uses: actions/setup-python@v4
id: setup-python2
with:
python-version: 2.7
- name: Start test server
run: ${GITHUB_WORKSPACE}/diptest/start_test_server.sh
- name: Run tests
run: cd diptest && go test -v -timeout 40m