From 3d4de9476d6f864f769e75842024f1a924df0795 Mon Sep 17 00:00:00 2001 From: zomars Date: Wed, 9 Feb 2022 18:19:28 -0700 Subject: [PATCH] e2e fixes --- .github/workflows/e2e.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index abfa24cf..29780501 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -57,22 +57,20 @@ jobs: fetch-depth: 2 - name: Use Node ${{ matrix.node }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: + cache: "yarn" + cache-dependency-path: yarn.lock node-version: ${{ matrix.node }} - - name: Install deps - uses: bahmutov/npm-install@v1 - - name: Next.js cache + - name: Turbo Cache + id: turbo-cache uses: actions/cache@v2 with: - path: ${{ github.workspace }}/.next/cache - # Generate a new cache whenever packages or source files change. - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} - # If source files changed but packages didn't, rebuild from a prior cache. + path: .turbo + key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- - + turbo-${{ github.job }}-${{ github.ref_name }}- - run: cd apps/web - run: yarn prisma migrate deploy - run: yarn db-seed