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 994e8b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
# how many fail)
fail-fast: false
matrix:
js_package_manager:
- name: npm
installer: npm
- name: yarn_classic
installer: yarn
- name: pnpm
installer: pnpm
variant:
- name: defaults
config_path: "ackama_rails_template.config.yml"
Expand Down Expand Up @@ -116,6 +123,9 @@ jobs:
cache: "yarn"
node-version-file: ".node-version"

- name: install package manager
run: npm i -g ${{ matrix.js_package_manager.installer }}

# 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 +159,5 @@ jobs:
PGUSER: postgres
PGPASSWORD: postgres
PGHOST: localhost
PACKAGE_JSON_FALLBACK_MANAGER: ${{ matrix.js_package_manager.name }}
run: ./ci/bin/build-and-test

0 comments on commit 994e8b0

Please sign in to comment.