diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index e900a00e..e4555260 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -143,6 +143,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 'lts/*' + cache-dependency-path: 'test/integration/js/' - name: Set up Rust uses: dtolnay/rust-toolchain@v1 with: @@ -172,6 +173,8 @@ jobs: run: docker-compose -f ./docker-compose.db.yml up -d - name: Start epmd run: epmd -daemon + - name: Install Node dependencies + run: 'cd test/integration/js/; npm install' - name: Run tests run: mix test --only integration --trace diff --git a/test/integration/js/postgres/test.js b/test/integration/js/postgres/test.js index 08786ee4..cc816409 100644 --- a/test/integration/js/postgres/test.js +++ b/test/integration/js/postgres/test.js @@ -81,6 +81,6 @@ function exit() { ? console.log('🎉') : console.error('⚠️', 'Not good') - !process.exitCode && (!success || only || ignored) && (process.exitCode = 1) + if (!success || only || ignored) { process.exit(1) } else { process.exit(0) } }