forked from cube-js/cube
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (75 loc) · 2.74 KB
/
cloud.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# CAUTION: This workflow exposes secrets. It is only supposed to be run on "merge into master" condition.
name: 'Cloud Tests'
on:
# push doesn't work for PRs, it's safe to use it
# only maintainers/core contributors are allowed to push directly to the main repository
push:
paths:
- '.github/actions/integration/athena.sh'
- '.github/actions/integration/bigquery.sh'
- '.github/workflows/cloud.yml'
- 'packages/cubejs-testing/**'
- 'packages/cubejs-testing-shared/**'
- 'packages/cubejs-backend-shared/**'
- 'packages/cubejs-base-driver/**'
- 'packages/cubejs-query-orchestrator/**'
- 'packages/cubejs-schema-compiler/**'
# drivers
- 'packages/cubejs-athena-driver/**'
- 'packages/cubejs-bigquery-driver/**'
- 'lerna.json'
- 'package.json'
- 'yarn.lock'
jobs:
integration-cloud:
runs-on: ubuntu-20.04
timeout-minutes: 60
strategy:
matrix:
node-version: [ 16.x ]
db: [ 'athena', 'bigquery' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Disable rustup update (issue workaround for Windows)
run: rustup set auto-self-update disable
if: contains(runner.os, 'windows')
shell: bash
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-06-22
override: true
components: rustfmt
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore lerna
uses: actions/cache@v3
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
rust/node_modules
packages/*/node_modules
key: ${{ runner.os }}-workspace-main-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-workspace-main-${{ matrix.node-version }}-
- name: Set Yarn version
run: yarn policies set-version v1.22.19
- name: Yarn install
run: CUBESTORE_SKIP_POST_INSTALL=true yarn install --frozen-lockfile
- name: Lerna tsc
run: yarn tsc
- name: Run Integration tests for ${{ matrix.db }} matrix
timeout-minutes: 30
env:
CUBEJS_DB_BQ_CREDENTIALS: ${{ secrets.CUBEJS_DB_BQ_CREDENTIALS }}
CUBEJS_AWS_KEY: ${{ secrets.CUBEJS_AWS_KEY }}
CUBEJS_AWS_SECRET: ${{ secrets.CUBEJS_AWS_SECRET }}
run: ./.github/actions/integration/${{ matrix.db }}.sh