Skip to content

[Feature] use users endpoits #84

[Feature] use users endpoits

[Feature] use users endpoits #84

Workflow file for this run

name: PR Build and Test
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node and install dependencies
uses: ./.github/actions/setup-node-and-install
with:
node-version: 20
- name: Lint test
run: |
npm run lint
build:
environment: Preview
runs-on: ubuntu-latest
env:
NODE_ENV: production
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
BASE_API_URL: ${{ secrets.BASE_API_URL }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node and install dependencies
uses: ./.github/actions/setup-node-and-install
with:
node-version: 20
- name: Check current directory
run: pwd
- name: List all files
run: ls -la
- name: Build app
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: next-build
path: .next/
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-