e2e fixes
parent
fb20d24e8d
commit
3d4de9476d
|
@ -57,22 +57,20 @@ jobs:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Use Node ${{ matrix.node }}
|
- name: Use Node ${{ matrix.node }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
cache: "yarn"
|
||||||
|
cache-dependency-path: yarn.lock
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
- name: Install deps
|
- name: Turbo Cache
|
||||||
uses: bahmutov/npm-install@v1
|
id: turbo-cache
|
||||||
- name: Next.js cache
|
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/.next/cache
|
path: .turbo
|
||||||
# Generate a new cache whenever packages or source files change.
|
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
|
||||||
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.
|
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
turbo-${{ github.job }}-${{ github.ref_name }}-
|
||||||
|
|
||||||
- run: cd apps/web
|
- run: cd apps/web
|
||||||
- run: yarn prisma migrate deploy
|
- run: yarn prisma migrate deploy
|
||||||
- run: yarn db-seed
|
- run: yarn db-seed
|
||||||
|
|
Loading…
Reference in New Issue