Skip to content

refactor givebutter-salesforce #34

refactor givebutter-salesforce

refactor givebutter-salesforce #34

Workflow file for this run

on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
name: Build and test export
jobs:
install:
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: 1
STRIPE_PK_TEST: "placeholder"
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
SUPABASE_JWT_SECRET: ${{ secrets.SUPABASE_JWT_SECRET }}
SUPABASE_PASSWORD: ${{ secrets.SUPABASE_PASSWORD }}
SUPABASE_PRIVATE_API_KEY: ${{ secrets.SUPABASE_PRIVATE_API_KEY }}
SUPABASE_PROJECT_URL: ${{ secrets.SUPABASE_PROJECT_URL }}
SUPABASE_PUBLIC_API_KEY: ${{ secrets.SUPABASE_PUBLIC_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]sx?') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test