From f392d56f5fdb4b629d4f18ba47b31a517331c25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jan=20Niemier?= Date: Tue, 10 Dec 2024 16:51:33 +0100 Subject: [PATCH] test: install Node dependencies as a separate step --- .github/workflows/elixir.yml | 3 +++ test/integration/js/postgres/test.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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) } }