Skip to content

Commit

Permalink
test: install Node dependencies as a separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Dec 10, 2024
1 parent cdcff01 commit f392d56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/integration/js/postgres/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}

0 comments on commit f392d56

Please sign in to comment.