From 5df58522285392f046f945fd4c50bc2a3fe65df5 Mon Sep 17 00:00:00 2001 From: Catalin <85691190+ccataalin@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:30:58 +0300 Subject: [PATCH] install node --- .github/workflows/run-types-checker.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-types-checker.yml b/.github/workflows/run-types-checker.yml index d7c2bfc317..9be9b49b3b 100644 --- a/.github/workflows/run-types-checker.yml +++ b/.github/workflows/run-types-checker.yml @@ -14,13 +14,24 @@ jobs: - uses: actions/checkout@v3 - name: Building CKAN docker image run: docker-compose build ckan + - name: Spinning up docker-compose stack run: | 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 + + - name: Install Node.js and npm + run: | + 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 npm + " - name: Install node deps - run: docker-compose exec -T ckan npm ci + run: docker-compose exec -T ckan npm ci --prefix /srv/ckan + - name: Check types - run: docker-compose exec -T ckan npx pyright + run: docker-compose exec -T ckan npx pyright /srv/ckan