Initial commit for iwmi products #418
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |