From cd1777d6ea9df8b6176095947132fd7e61e7e9ec Mon Sep 17 00:00:00 2001 From: Alexandru Gartner Date: Mon, 5 Aug 2024 21:09:35 +0000 Subject: [PATCH] HDX-10066 replace docker-compose v1 with v2 for type checker --- .github/workflows/run-types-checker.yml | 36 ++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/run-types-checker.yml b/.github/workflows/run-types-checker.yml index 27d2eca10f..b4d7f4ffaa 100644 --- a/.github/workflows/run-types-checker.yml +++ b/.github/workflows/run-types-checker.yml @@ -17,72 +17,72 @@ jobs: uses: actions/checkout@v4 - name: Building CKAN docker image - run: docker-compose build ckan + run: docker compose build ckan - - name: Spinning up docker-compose stack + - name: Spinning up docker compose stack run: | - docker-compose up -d + docker compose up -d sleep 10 - name: Installing HDX/CKAN PY3 dev-requirements - run: docker-compose exec -T ckan pip install -r /srv/ckan/dev-requirements.txt + run: docker compose exec -T ckan pip install -r /srv/ckan/dev-requirements.txt - name: Install Node.js and npm run: | - docker-compose exec -T ckan bash -c " + docker compose exec -T ckan bash -c " curl -sL https://deb.nodesource.com/setup_22.x | bash - apt-get install -y nodejs npm install -g pyright " - name: Check types for ckanext-hdx_dataviz - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_dataviz + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_dataviz continue-on-error: true - name: Check types for ckanext-hdx_hxl_preview - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_hxl_preview + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_hxl_preview continue-on-error: true - name: Check types for ckanext-hdx_office_preview - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_office_preview + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_office_preview continue-on-error: true - name: Check types for ckanext-hdx_org_group - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_org_group + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_org_group continue-on-error: true - name: Check types for ckanext-hdx_package - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_package + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_package continue-on-error: true - name: Check types for ckanext-hdx_pages - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_pages + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_pages continue-on-error: true - name: Check types for ckanext-hdx_search - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_search + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_search continue-on-error: true - name: Check types for ckanext-hdx_service_checker - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_service_checker + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_service_checker continue-on-error: true - name: Check types for ckanext-hdx_theme - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_theme + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_theme continue-on-error: true - name: Check types for ckanext-hdx_user_extra - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_user_extra + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_user_extra continue-on-error: true - name: Check types for ckanext-hdx_users - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-hdx_users + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-hdx_users continue-on-error: true - name: Check types for ckanext-sitemap - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-sitemap + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-sitemap continue-on-error: true - name: Check types for ckanext-ytp-request - run: docker-compose exec -T ckan pyright /srv/ckan/ckanext-ytp-request + run: docker compose exec -T ckan pyright /srv/ckan/ckanext-ytp-request continue-on-error: true