Skip to content

Commit d0e56bd

Browse files
authored
Migrate travis ci to Github actions. (#253)
* Run CI tests against go 1.11 to 1.15 * Run gopath test for go 1.11 and go 1.12 * Update README with CI status
1 parent 2042caf commit d0e56bd

File tree

5 files changed

+60
-45
lines changed

5 files changed

+60
-45
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [ master, qa ]
6+
pull_request:
7+
branches: [ master, qa ]
8+
9+
jobs:
10+
test-gomod:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-version: [ '1.11.x', '1.12.x', '1.13.x', '1.14.x', '1.15.x']
15+
steps:
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: ${{ matrix.go-version }}
20+
- name: Cache go modules
21+
uses: actions/cache@v2
22+
with:
23+
path: |
24+
~/.cache/go-build
25+
~/go/pkg/mod
26+
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
27+
restore-keys: |
28+
${{ runner.os }}-${{ matrix.go-version }}-go-
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
- name: Install
32+
env:
33+
GO111MODULE: on
34+
run: |
35+
go get .
36+
- name: Test gomod
37+
run: |
38+
go test -v -race google.golang.org/appengine/...
39+
test-gopath:
40+
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
# GOPATH is deprecated in go 1.13.
44+
go-version: [ '1.11.x', '1.12.x']
45+
steps:
46+
- name: Set up Go
47+
uses: actions/setup-go@v2
48+
with:
49+
go-version: ${{ matrix.go-version }}
50+
- name: Checkout
51+
uses: actions/checkout@v2
52+
- name: Install
53+
env:
54+
GO111MODULE: off
55+
run: |
56+
go get -u -v $(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v appengine)
57+
- name: Test gopath
58+
run: |
59+
go test -v -race google.golang.org/appengine/...

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Go App Engine packages
22

3-
[![Build Status](https://travis-ci.org/golang/appengine.svg)](https://travis-ci.org/golang/appengine)
3+
[![CI Status](https://github.com/golang/appengine/actions/workflows/ci.yml/badge.svg)](https://github.com/golang/appengine/actions/workflows/ci.yml)
44

55
This repository supports the Go runtime on *App Engine standard*.
66
It provides APIs for interacting with App Engine services.

travis_install.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

travis_test.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)