diff --git a/.github/workflows/buildTest.yml b/.github/workflows/buildTest.yml index 2dc8728..341ca9c 100644 --- a/.github/workflows/buildTest.yml +++ b/.github/workflows/buildTest.yml @@ -20,6 +20,23 @@ jobs: TURBO_REMOTE_ONLY: true steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Create env file + run: | + touch .env.local + echo TURSO_DB_URL="file:local.db" >> .env.local + cat .env.local + - uses: actions/cache@v4 with: # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node @@ -32,17 +49,6 @@ jobs: restore-keys: | ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- - - name: Check out code - uses: actions/checkout@v4 - with: - fetch-depth: 2 - - - name: Setup Node.js environment - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' - - name: Install dependencies run: npm install