From 5511c63d0acf1e0a82922f2f93205c6421c2950b Mon Sep 17 00:00:00 2001 From: Debdut Chakraborty Date: Mon, 4 Jul 2022 02:13:19 +0530 Subject: [PATCH] Silly :( bash doesn't read any rc files if non-interactive --- .github/workflows/build_and_test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 8ef566b8..96f76022 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -12,6 +12,7 @@ concurrency: env: BUILD_PATH: /tmp/archive.tgz NVM_DIR: /opt/nvm + BASH_ENV: /opt/nvm/nvm.sh NODE_ENV: production jobs: @@ -29,14 +30,12 @@ jobs: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash - name: Install cms dependencies - shell: bash --rcfile /opt/nvm/nvm.sh --noprofile -eo pipefail {0} run: | cd cms nvm install npm install - name: Start cms - shell: bash --rcfile /opt/nvm/nvm.sh --noprofile -eo pipefail {0} run: cd cms; npm run develop &> /tmp/cms.log & env: { INITIALIZE_DATA: "true" } @@ -84,14 +83,12 @@ jobs: # env: { PORT: 1337 } - name: Install app dependencies - shell: bash --rcfile /opt/nvm/nvm.sh --noprofile -eo pipefail {0} run: | cd app nvm i npm i - name: Start app - shell: bash --rcfile /opt/nvm/nvm.sh --noprofile -eo pipefail {0} run: | cd app npm run dev &>/tmp/app.log &