Skip to content

Commit

Permalink
test (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jul 6, 2024
1 parent 24df4e4 commit 82c3fb1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Cache Next.js build
uses: actions/cache@v3
with:
path: .next/cache
key: ${{ runner.os }}-nextjs-cache-${{ hashFiles('**/*') }}
restore-keys: |
${{ runner.os }}-nextjs-cache-
- name: Build Next.js
env:
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}
run: pnpm run build

0 comments on commit 82c3fb1

Please sign in to comment.