1515 strategy :
1616 fail-fast : false
1717 matrix :
18- go-version : ['1.11 .x', '1.13 .x', '1.16 .x', '1.18.x', '1.19.x', '1.20.x', '1.21 .x']
18+ go-version : ['1.19 .x', '1.20 .x', '1.21 .x', '1.22 .x']
1919 env :
2020 working-directory : ./v2
2121
5858 export CLOUDSDK_PYTHON="python3"
5959 go test -v -cover -race google.golang.org/appengine/v2/...
6060 # TestAPICallAllocations doesn't run under race detector.
61- go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations
62-
63- test-gopath-v2 :
64- runs-on : ubuntu-latest
65- strategy :
66- fail-fast : false
67- matrix :
68- # GOPATH is deprecated in go 1.13.
69- go-version : [ '1.11.x', '1.12.x']
70- env :
71- working-directory : ./v2
72-
73- steps :
74- - name : Update base image, intall Python2 and Python3
75- run : |
76- sudo apt-get update
77- sudo apt-get install -y python2
78- sudo apt-get install -y python3
79- - name : Set up Go
80- uses : actions/setup-go@v2
81- with :
82- go-version : ${{ matrix.go-version }}
83- - name : Checkout
84- uses : actions/checkout@v2
85- - name : Cache go modules
86- uses : actions/cache@v2
87- with :
88- path : |
89- ~/.cache/go-build
90- ~/go/pkg/mod
91- key : ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
92- restore-keys : |
93- ${{ runner.os }}-${{ matrix.go-version }}-go-
94- - name : Set up Cloud SDK
95- uses : google-github-actions/setup-gcloud@v0
96- - name : Install
97- working-directory : ${{env.working-directory}}
98- env :
99- GO111MODULE : off
100- run : |
101- go get -u -v $(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v appengine)
102- go get -u google.golang.org/appengine/v2
103- gcloud components install app-engine-python app-engine-go cloud-datastore-emulator app-engine-python-extras --quiet
104- - name : Test gopath v2
105- working-directory : ${{env.working-directory}}
106- run : |
107- export APPENGINE_DEV_APPSERVER=$(which dev_appserver.py)
108- export CLOUDSDK_PYTHON="python3"
109- go test -v -cover -race google.golang.org/appengine/v2/...
110- # TestAPICallAllocations doesn't run under race detector.
111- go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations
61+ go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations
0 commit comments