Skip to content

Commit 1f197e8

Browse files
authored
chore: Adding a CI job to build in non-module (gopath) mode (#381)
* chore: Adding a CI job to build in non-module (gopath) mode * Fixed a syntax error in yaml * Removed unconditional requirement on tests
1 parent 38e9443 commit 1f197e8

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Continuous Integration
22
on: pull_request
33
jobs:
44

5-
build:
6-
name: Build
5+
module:
6+
name: Module build
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
@@ -38,3 +38,26 @@ jobs:
3838
3939
- name: Run Static Analyzer
4040
run: go vet -v ./...
41+
42+
gopath:
43+
name: Gopath build
44+
runs-on: ubuntu-latest
45+
env:
46+
GOPATH: ${{ github.workspace }}/go
47+
48+
steps:
49+
- name: Set up Go 1.12
50+
uses: actions/setup-go@v1
51+
with:
52+
go-version: 1.12
53+
54+
- name: Check out code into GOPATH
55+
uses: actions/checkout@v2
56+
with:
57+
path: go/src/firebase.google.com/go
58+
59+
- name: Get dependencies
60+
run: go get -t -v $(go list ./... | grep -v integration)
61+
62+
- name: Run Unit Tests
63+
run: go test -v -race -test.short firebase.google.com/go/...

0 commit comments

Comments
 (0)