diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dc14e0b5fe..2c1a0c4695 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,8 +25,10 @@ jobs: - run: yarn lint --max-warnings=0 - uses: actions/cache@v2 with: - path: '*' key: v2-${{ github.sha }}-${{ matrix.node }} + path: | + '*' + !node_modules test: runs-on: ubuntu-latest needs: build @@ -54,8 +56,11 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + - name: Install packages + run: yarn install --frozen-lockfile --check-files - name: Test ${{ matrix.package }} - run: cd packages/${{ matrix.package }} && yarn test + working-directory: packages/${{ matrix.package }} + run: yarn test # run: cd packages/${{ matrix.package }} && yarn test --coverage env: CI: true diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml index c41812a5c0..13f06854ec 100644 --- a/.github/workflows/test_windows.yml +++ b/.github/workflows/test_windows.yml @@ -24,8 +24,10 @@ jobs: - run: yarn lint --max-warnings=0 - uses: actions/cache@v2 with: - path: '*' key: v2-${{ github.sha }}-${{ matrix.node }} + path: | + '*' + !node_modules test: runs-on: ubuntu-latest needs: build @@ -53,8 +55,11 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + - name: Install packages + run: yarn install --frozen-lockfile --check-files - name: Test ${{ matrix.package }} - run: cd packages/${{ matrix.package }} && yarn test + working-directory: packages/${{ matrix.package }} + run: yarn test # run: cd packages/${{ matrix.package }} && yarn test --coverage env: CI: true