Skip to content

Commit

Permalink
chore: (wip) switch github actions to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Oct 21, 2023
1 parent 793ec57 commit e94b746
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "yarn"
cache-dependency-path: core/api/yarn.lock
- run: cd core/api && yarn install --frozen-lockfile
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- run: npm install -g pnpm # Install pnpm globally
- run: cd core/api && pnpm install --frozen-lockfile
- name: Run audit
run: cd core/api && make audit
2 changes: 1 addition & 1 deletion .github/workflows/bats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version: 20
cache: "yarn"
cache-dependency-path: core/api/yarn.lock
- run: cd core/api && yarn install --frozen-lockfile
- run: cd core/api && pnpm install --frozen-lockfile
- name: Run bats tests
run: |
. ./.env && cd core/api && make reset-bats
2 changes: 1 addition & 1 deletion .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
node-version: 20
cache: "yarn"
cache-dependency-path: core/api/yarn.lock
- run: cd core/api && yarn install --frozen-lockfile
- run: cd core/api && pnpm install --frozen-lockfile
- name: Run check code
run: cd core/api && make check-code
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version: 20
cache: "yarn"
cache-dependency-path: core/api/yarn.lock
- run: cd core/api && yarn install --frozen-lockfile
- run: cd core/api && pnpm install --frozen-lockfile
- name: Run integration tests
run: |
cd core/api/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mongodb-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
node-version: 20
cache: "yarn"
cache-dependency-path: core/api/yarn.lock
- run: cd core/api/ && yarn install --frozen-lockfile
- run: cd core/api/ && pnpm install --frozen-lockfile
- name: Run clean mongodb migration
run: cd core/api/ && make test-migrate
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
node-version: 20
cache: "yarn"
cache-dependency-path: core/api/yarn.lock
- run: cd core/api && yarn install --frozen-lockfile
- run: cd core/api && pnpm install --frozen-lockfile
- name: Run unit tests
run: cd core/api && make unit-in-ci

0 comments on commit e94b746

Please sign in to comment.