-
Notifications
You must be signed in to change notification settings - Fork 13
144 lines (127 loc) · 5.42 KB
/
build-config.yml
File metadata and controls
144 lines (127 loc) · 5.42 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: Build and test DataSQRL Examples
on:
workflow_dispatch:
inputs:
repo:
description: Test runner
required: true
default: 'zharec'
type: string
note:
description: Test note
required: true
default: 'Smoke test'
type: string
example:
description: Example to test
required: true
type: choice
default: healthcare
options:
- finance
- healthcare
- logistics
- iot-sensor
- retail
- recommendation
- law
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
TZ: 'America/Los_Angeles'
steps:
- name: Setup Timezone
uses: szenius/set-timezone@v1.1
with:
timezoneLinux: "America/Los_Angeles"
- name: Pull SQRL Docker image
run: docker pull datasqrl/cmd:v0.5.6
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Run Healthcare Analytics Test
if: ${{ github.event.inputs.example == 'healthcare' }}
working-directory: ./healthcare-study-monitoring
run: |
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build -e LOCAL_WAREHOUSE_DIR=/tmp/warehouse datasqrl/cmd:v0.5.6 test -c study_analytics_package.json study_analytics.sqrl --snapshot snapshots-study-analytics
continue-on-error: false
- name: Run Healthcare Study Api Test
if: ${{ github.event.inputs.example == 'healthcare' }}
working-directory: ./healthcare-study-monitoring
run: |
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test -c study_api_test_package.json --tests tests-api --snapshot snapshots-study-api
continue-on-error: false
- name: Run Healthcare Study Stream Test
if: ${{ github.event.inputs.example == 'healthcare' }}
working-directory: ./healthcare-study-monitoring
run: |
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test -c study_stream_local_package.json study_stream.sqrl --snapshot snapshots-study-stream
continue-on-error: false
- name: Run Healthcare Create Api Test
if: ${{ github.event.inputs.example == 'healthcare' }}
working-directory: ./healthcare-study-monitoring
run: |
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 compile study_create_api.sqrl
continue-on-error: false
- name: Run Finance Analytics Test
if: ${{ github.event.inputs.example == 'finance' }}
working-directory: ./finance-credit-card-chatbot
run: |
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test -c package-analytics-local.json --snapshot snapshots-analytics
continue-on-error: false
- name: Run Finance Rewards Test
if: ${{ github.event.inputs.example == 'finance' }}
working-directory: ./finance-credit-card-chatbot
run: |
docker run -i -p 8888:8888 -p 8081:8081 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test test -c package-rewards-local.json --snapshot snapshots-rewards
continue-on-error: false
- name: Publish finance
if: ${{ github.event.inputs.example == 'finance' }}
uses: docker/build-push-action@v3
with:
context: finance-credit-card-chatbot
file: finance-credit-card-chatbot/Dockerfile
push: true
tags: datasql/examples:finance
platforms: linux/amd64,linux/arm64
- name: Run Clickstream Recommendation Test
if: ${{ github.event.inputs.example == 'recommendation' }}
working-directory: ./clickstream-ai-recommendation
run: |
docker run -i -p 8888:8888 -p 8081:8081 -p 9092:9092 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test test -c package.json --snapshot snapshots
continue-on-error: false
- name: Run IoT Sensor Test
if: ${{ github.event.inputs.example == 'iot-sensor' }}
working-directory: ./iot-sensor-metrics
run: |
docker run -i -p 8888:8888 -p 8081:8081 -p 9092:9092 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test sensors.sqrl --snapshot snapshots
continue-on-error: false
- name: Run Logistics Test
if: ${{ github.event.inputs.example == 'logistics' }}
working-directory: ./logistics-shipping-geodata
run: |
docker run -i -p 8888:8888 -p 8081:8081 -p 9092:9092 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test logistics.sqrl --snapshot snapshots
continue-on-error: false
- name: Run Retail Test
if: ${{ github.event.inputs.example == 'retail' }}
working-directory: ./retail-customer360-nutshop
run: |
docker run -i -p 8888:8888 -p 8081:8081 -p 9092:9092 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test customer360.sqrl --snapshot snapshots
continue-on-error: false
- name: Run Law Enforcement Test
if: ${{ github.event.inputs.example == 'law' }}
working-directory: ./law-enforcement
run: |
docker run -i -p 8888:8888 -p 8081:8081 -p 9092:9092 --rm -v $PWD:/build datasqrl/cmd:v0.5.6 test -c baseball-card-local.json --snapshot snapshots
continue-on-error: false
- name: Run anyway
if: ${{ github.event.inputs.example != 'healthcare' }}
run: |
echo "This ran, I guess that is a good thing"
continue-on-error: true