Skip to content

fix: remove force push #113

fix: remove force push

fix: remove force push #113

name: CI for web service
on:
push:
branches:
- main
paths:
- services/web/**
pull_request:
branches:
- main
paths:
- services/web/**
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/web
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: services/web/package.json
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
cache-dependency-path: services/web/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: Lint with TSC
run: pnpm tsc
- name: Lint with ESLint
run: pnpm eslint .
format:
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/web
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: services/web/package.json
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
cache-dependency-path: services/web/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: Check format
run: pnpm prettier . --check
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/web
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: services/web/package.json
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
cache-dependency-path: services/web/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
env:
NEXT_PUBLIC_API_BASE_URL: ${{ secrets.NEXT_PUBLIC_API_BASE_URL }}