-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (56 loc) · 1.76 KB
/
bigquery-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: BigQuery-Integration
on:
push:
branches:
- main
env:
BIG_QUERY_PROJECT: ${{ secrets.BIGQUERY_PROJECT }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
it-test:
name: Build and BQ IT Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v13
with:
java-version: "[email protected]"
- name: Set up GCloud SDK
uses: google-github-actions/[email protected]
with:
project_id: ${{ secrets.BIGQUERY_PROJECT }}
service_account_key: ${{ secrets.BQ_SERVICE_ACCOUNT_64 }}
export_default_credentials: true
- name: Integration Tests
run: sbt -v -Dfile.encoding=UTF-8 +bigquery/IntegrationTest/test
coverage-it:
name: Code Coverage IT Tests
strategy:
matrix:
scala: [2.12.19, 2.13.14]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v13
with:
java-version: "[email protected]"
- name: Set up GCloud SDK
uses: google-github-actions/[email protected]
with:
project_id: ${{ secrets.BIGQUERY_PROJECT }}
service_account_key: ${{ secrets.BQ_SERVICE_ACCOUNT_64 }}
export_default_credentials: true
- name: Integration Tests
run: sbt ++${{ matrix.scala }} clean coverage bigquery/IntegrationTest/test
- name: Coverage Report
run: sbt ++${{ matrix.scala }} coverageReport
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false # optional (default = false)
flags: bq-integration