-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (38 loc) · 1.07 KB
/
workflow.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
name: tests-coverage-linting
on:
push:
branches:
- '*'
- '*/*'
- '!master'
pull_request:
branches:
- '*'
- '*/*'
- '!master'
env:
COMPOSE_INTERACTIVE_NO_CLI: 1
SNOWFLAKE_USERNAME: ${{ secrets.SNOWFLAKE_USERNAME }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
BIGQUERY_PROJECT: ${{ secrets.BIGQUERY_PROJECT }}
jobs:
build:
name: test-and-lint-and-coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: decode-keyfile
id: decode-keyfile
uses: timheuer/base64-to-file@v1.0.3
with:
fileName: 'keyfile.json'
encodedString: ${{ secrets.BIGQUERY_KEYFILE }}
- name: copy-keyfile
run: cp ${{ steps.decode-keyfile.outputs.filePath }} test_xdb/keyfile.json
- name: start containers
run: docker-compose up -d
- name: run-tests
run: docker-compose exec -T testxdb test
- name: check-coverage
run: docker-compose exec -T testxdb coverage