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; }