Skip to content

Commit

Permalink
ci: test against the three main package managers
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 12, 2023
1 parent 12d420c commit 87d0b8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 87d0b8f

Please sign in to comment.