Skip to content

Commit

Permalink
Silly :( bash doesn't read any rc files if non-interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb authored and Dnouv committed Nov 3, 2022
1 parent 1e25c49 commit 5511c63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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" }

Expand Down Expand Up @@ -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 &
Expand Down

0 comments on commit 5511c63

Please sign in to comment.