-
Notifications
You must be signed in to change notification settings - Fork 79
77 lines (73 loc) · 2.22 KB
/
run-tests.yaml
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
name: Malloy Tests
on: [workflow_dispatch, pull_request]
jobs:
check-permission:
runs-on: ubuntu-latest
steps:
- name: Permission Check
uses: malloydata/check-ci-permissions@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.triggering_actor }}
error_message: |
User does not have write access to this repository. Refer to CONTRIBUTING.md instructions on how to contribute to Malloy.
# *** IMPORTANT ***
# When modifying these, make sure that needs: check-permission
# is part of any job that requires secrets.
main:
needs: check-permission
uses: './.github/workflows/main.yaml'
secrets:
BIGQUERY_KEY: ${{ secrets.BIGQUERY_KEY }}
db-trino:
needs: check-permission
uses: './.github/workflows/db-trino.yaml'
secrets:
BQ_PRESTO_TRINO_KEY: ${{ secrets.BQ_PRESTO_TRINO_KEY }}
db-presto:
needs: check-permission
uses: './.github/workflows/db-presto.yaml'
secrets:
BQ_PRESTO_TRINO_KEY: ${{ secrets.BQ_PRESTO_TRINO_KEY }}
db-duckdb:
uses: './.github/workflows/db-duckdb.yaml'
db-bigquery:
needs: check-permission
uses: './.github/workflows/db-bigquery.yaml'
secrets:
BIGQUERY_KEY: ${{ secrets.BIGQUERY_KEY }}
db-motherduck:
needs: check-permission
uses: './.github/workflows/db-motherduck.yaml'
secrets:
MOTHERDUCK_TOKEN_10: ${{ secrets.MOTHERDUCK_TOKEN_10 }}
db-postgres:
uses: './.github/workflows/db-postgres.yaml'
db-snowflake:
needs: check-permission
uses: './.github/workflows/db-snowflake.yaml'
secrets:
SNOWFLAKE_CONNECTION: ${{ secrets.SNOWFLAKE_CONNECTION }}
db-mysql:
uses: './.github/workflows/db-mysql.yaml'
db-duckdb-wasm:
uses: './.github/workflows/db-duckdb-wasm.yaml'
# I think I have the sorted roughly longest to shortest
# so the longer running jobs get workers sooner, not sure
# that is the right plan
malloy-tests:
needs:
- main
- db-snowflake
- db-bigquery
- db-duckdb
- db-presto
- db-duckdb-wasm
- db-trino
- db-postgres
- db-motherduck
- db-mysql
runs-on: ubuntu-latest
steps:
- name: Success
run: echo Success