From 87d0b8f3bb11288d3b7031e7c56e55812e498763 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 13 Aug 2023 11:14:05 +1200 Subject: [PATCH] ci: test against the three main package managers --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c00a3f5f..7a66e9c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: # how many fail) fail-fast: false matrix: + js_package_manager: [npm, pnpm, yarn] variant: - name: defaults config_path: "ackama_rails_template.config.yml" @@ -116,6 +117,9 @@ jobs: cache: "yarn" node-version-file: ".node-version" + - name: install package manager + run: npm i -g ${{ matrix.js_package_manager }} + # We don't cache gems or JS packages because we are actually testing how # installation and setup works in this project so, while caching would # make CI faster, it might hide problems. @@ -149,4 +153,5 @@ jobs: PGUSER: postgres PGPASSWORD: postgres PGHOST: localhost + PACKAGE_JSON_FALLBACK_MANAGER: ${{ matrix.js_package_manager }} run: ./ci/bin/build-and-test