Skip to content

Commit

Permalink
Merge pull request #24 from SteakFisher/main
Browse files Browse the repository at this point in the history
Workflow
  • Loading branch information
SteakFisher authored Jun 14, 2024
2 parents 82a3cb9 + 1dd621c commit 0e2d299
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/buildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ jobs:
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
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: npm install

Expand Down

0 comments on commit 0e2d299

Please sign in to comment.