chore: make changed to build images #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |