-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (41 loc) · 1.66 KB
/
product-lists-test.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
name: Check Product Lists
on:
push:
paths:
- "products/**"
- "dev/products_dev.csv"
- "prod/products_prod.csv"
- ".github/workflows/product-lists-test.yaml"
pull_request:
branches: [master]
paths:
- "products/**"
- "dev/products_dev.csv"
- "prod/products_prod.csv"
- ".github/workflows/product-lists-test.yaml"
jobs:
test-product-lists:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check prod
timeout-minutes: 20
shell: bash
run: |
sed -i.bak -e "s,https://raw.githubusercontent.com/digitalearthafrica/config/master/,/conf/,g" prod/products_prod.csv
docker compose -f docker-compose.products.yaml pull
docker compose -f docker-compose.products.yaml up -d
sleep 3
docker compose -f docker-compose.products.yaml exec -T products-tester datacube system init
docker compose -f docker-compose.products.yaml exec -T products-tester dc-sync-products /conf/products_prod.csv
docker compose -f docker-compose.products.yaml down
- name: Check dev
timeout-minutes: 20
shell: bash
run: |
sed -i.bak -e "s,https://raw.githubusercontent.com/digitalearthafrica/config/master/,/conf/,g" dev/products_dev.csv
docker compose -f docker-compose.products.yaml up -d
sleep 3
docker compose -f docker-compose.products.yaml exec -T products-tester datacube system init
docker compose -f docker-compose.products.yaml exec -T products-tester dc-sync-products /conf/products_dev.csv
docker compose -f docker-compose.products.yaml down