Skip to content

make docker setup

make docker setup #75

Workflow file for this run

name: CI
on:
push:
branches:
- main
- "feature/*"
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.json') }}-
- name: Install dependencies
shell: bash
run: pnpm install
- name: Check formatting
shell: bash
run: pnpm check-format
- name: Build project
env:
SECRET_KEY: test-key
HYPERSWITCH_SANDBOX_BASE_URL: https://sandbox.hyperswitch.io
HYPERSWITCH_PROD_BASE_URL: hyperswitch_prod_url
JUSPAY_SANDBOX_BASE_URL: https://sandbox.juspay.in
JUSPAY_PROD_BASE_URL: https://api.juspay.in
shell: bash
run: pnpm build