From 03ba886dc54749be6cf5d3cca3c26a3d357b2f6e Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Sat, 6 Jul 2024 14:12:12 -0700 Subject: [PATCH] test (#164) --- .github/workflows/nextjs.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/nextjs.yml diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml new file mode 100644 index 00000000..c60c1ad1 --- /dev/null +++ b/.github/workflows/nextjs.yml @@ -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 + with: + UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }} + run: pnpm run build