From 796a4077eef4280f01c490154c086322f5834a09 Mon Sep 17 00:00:00 2001 From: SteakFisher Date: Fri, 14 Jun 2024 18:39:18 +0400 Subject: [PATCH 1/2] my never ending fight with github workflows --- .github/workflows/buildTest.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/buildTest.yml b/.github/workflows/buildTest.yml index 2dc8728..b4e27a4 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 + - 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 From 1dd621c4ba1802b46eeebca83b581326c8fbbc79 Mon Sep 17 00:00:00 2001 From: SteakFisher Date: Fri, 14 Jun 2024 18:40:42 +0400 Subject: [PATCH 2/2] my never ending fight with github workflows continues --- .github/workflows/buildTest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildTest.yml b/.github/workflows/buildTest.yml index b4e27a4..341ca9c 100644 --- a/.github/workflows/buildTest.yml +++ b/.github/workflows/buildTest.yml @@ -35,8 +35,8 @@ jobs: run: | touch .env.local echo TURSO_DB_URL="file:local.db" >> .env.local - cat .env - + 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