-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
65 additions
and
1 deletion.
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,64 @@ | ||
name: Test | ||
on: | ||
push: | ||
jobs: | ||
build: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go_version: [1.12, 1.13] | ||
steps: | ||
- name: Set up Go ${{ matrix.go_version }} | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
id: go | ||
|
||
- name: Install codecov | ||
run: sudo pip install codecov | ||
|
||
- name: Check out source code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Start Databases | ||
run: docker-compose up -d && sleep 20s | ||
|
||
- name: Run test | ||
run: env PATH=`go env GOPATH`/bin:$PATH make ci | ||
env: | ||
GOPROXY: "https://proxy.golang.org" | ||
|
||
- name: Run codecov | ||
run: codecov | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
name: Test BigQuery Integration | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go_version: [1.12, 1.13] | ||
steps: | ||
- name: Set up Go ${{ matrix.go_version }} | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: ${{ matrix.go_version }} | ||
id: go | ||
|
||
- name: Check out source code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Decrypt Secrets | ||
run: gpg --quiet --batch --yes --decrypt --passphrase="$GCP_CLIENT_SECRETS_PASSPHRASE" --output $GITHUB_WORKSPACE/client_secrets.json $GITHUB_WORKSPACE/client_secrets.json.gpg | ||
env: | ||
GCP_CLIENT_SECRETS_PASSPHRASE: $ | ||
|
||
- name: Run test | ||
run: env PATH=`go env GOPATH`/bin:$PATH make test_bigquery | ||
env: | ||
GOPROXY: "https://proxy.golang.org" |
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
Binary file not shown.