-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable aetest tests * Fix v2/aefix to work with appengine/v2 * Update Contributing docs
- Loading branch information
1 parent
d0e56bd
commit cefb82f
Showing
6 changed files
with
133 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: ci-v2 | ||
|
||
on: | ||
push: | ||
branches: [ master, qa ] | ||
pull_request: | ||
branches: [ master, qa ] | ||
|
||
jobs: | ||
test-gomod-v2: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: [ '1.11.x', '1.12.x', '1.13.x', '1.14.x', '1.15.x'] | ||
env: | ||
working-directory: ./v2 | ||
|
||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cache go modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.go-version }}-go- | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@master | ||
- name: Install | ||
working-directory: ${{env.working-directory}} | ||
env: | ||
GO111MODULE: on | ||
run: | | ||
go get . | ||
gcloud components install app-engine-python app-engine-go cloud-datastore-emulator --quiet | ||
- name: Test gomod v2 | ||
env: | ||
GO111MODULE: on | ||
working-directory: ${{env.working-directory}} | ||
run: | | ||
export APPENGINE_DEV_APPSERVER=$(which dev_appserver.py) | ||
go test -v -cover -race google.golang.org/appengine/v2/... | ||
# TestAPICallAllocations doesn't run under race detector. | ||
go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations | ||
test-gopath-v2: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# GOPATH is deprecated in go 1.13. | ||
go-version: [ '1.11.x', '1.12.x'] | ||
env: | ||
working-directory: ./v2 | ||
|
||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cache go modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.go-version }}-go- | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@master | ||
- name: Install | ||
working-directory: ${{env.working-directory}} | ||
env: | ||
GO111MODULE: off | ||
run: | | ||
go get -u -v $(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v appengine) | ||
go get -u google.golang.org/appengine/v2 | ||
gcloud components install app-engine-python app-engine-go cloud-datastore-emulator --quiet | ||
- name: Test gopath v2 | ||
working-directory: ${{env.working-directory}} | ||
run: | | ||
export APPENGINE_DEV_APPSERVER=$(which dev_appserver.py) | ||
go test -v -cover -race google.golang.org/appengine/v2/... | ||
# TestAPICallAllocations doesn't run under race detector. | ||
go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters