Browse Source

fix: fix tests.yml

Andrew Bastin 3 years ago
parent
commit
85889c2cb9
1 changed files with 9 additions and 10 deletions
  1. 9 10
      .github/workflows/tests.yml

+ 9 - 10
.github/workflows/tests.yml

@@ -21,13 +21,12 @@ jobs:
         uses: actions/setup-node@v2
         with:
           node-version: ${{ matrix.node-version }}
-    - name: Cache .pnpm-store
-      uses: actions/cache@v1
-      with:
-        path: ~/.pnpm-store
-        key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
-    - name: Install pnpm
-      run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6
-    - name: Run tests
-      - run: cd packages/hoppscotch-app && pnpm ci
-      - run: pnpm test
+      - name: Cache .pnpm-store
+        uses: actions/cache@v1
+        with:
+          path: ~/.pnpm-store
+          key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
+      - name: Install pnpm
+        run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6
+      - name: Run tests
+        run: cd packages/hoppscotch-app && pnpm i && pnpm test