diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 6b162a78951..828eae636d0 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -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 diff --git a/.github/workflows/bats.yml b/.github/workflows/bats.yml index 3a518b2d40c..b1fb5897c35 100644 --- a/.github/workflows/bats.yml +++ b/.github/workflows/bats.yml @@ -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 diff --git a/.github/workflows/check-code.yml b/.github/workflows/check-code.yml index 3fe4063bb54..0f2f4991fac 100644 --- a/.github/workflows/check-code.yml +++ b/.github/workflows/check-code.yml @@ -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 diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index e1bbd67555a..eee287a56fd 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -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/ diff --git a/.github/workflows/mongodb-migrate.yml b/.github/workflows/mongodb-migrate.yml index 8480502f0f6..6ef89e81d05 100644 --- a/.github/workflows/mongodb-migrate.yml +++ b/.github/workflows/mongodb-migrate.yml @@ -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 diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 9cadc4ec210..e038dff1b6b 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -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