From ef17344c6ebf8775956902ec1dccb027a02cbabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Szabo?= Date: Thu, 18 Aug 2022 21:00:33 -0300 Subject: [PATCH] Making APM work on dev builds --- .github/workflows/package-tests-linux.yml | 5 +++++ src/package-manager.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-tests-linux.yml b/.github/workflows/package-tests-linux.yml index 82c16d457..b2c586d7c 100644 --- a/.github/workflows/package-tests-linux.yml +++ b/.github/workflows/package-tests-linux.yml @@ -2,6 +2,8 @@ name: Package tests for Pulsar on Linux on: - push - pull_request +env: + APM_PATH: ./apm/node_modules/atom-package-manager/bin/apm jobs: setup: name: setup @@ -27,6 +29,9 @@ jobs: - name: build dependencies run: yarn build + - name: build dependencies + run: yarn build:apm + - name: cache node module id: cache-node uses: actions/cache@v3 diff --git a/src/package-manager.js b/src/package-manager.js index 163e3ca9d..342743697 100644 --- a/src/package-manager.js +++ b/src/package-manager.js @@ -190,7 +190,7 @@ module.exports = class PackageManager { // Return a {String} file path to apm. getApmPath() { const configPath = atom.config.get('core.apmPath'); - if (configPath || this.apmPath) { + if (process.env.APM_PATH || configPath || this.apmPath) { return configPath || this.apmPath; }