Skip to content

[HRIS-356] - [FE] DTR management export function for admin #1580

[HRIS-356] - [FE] DTR management export function for admin

[HRIS-356] - [FE] DTR management export function for admin #1580

Workflow file for this run

name: Prebuild check and build
on:
pull_request:
branches:
- develop
jobs:
build-frontend:
name: Build frontend
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install modules
run: cd client && npm ci
- name: Run ESLint and Prettier
run: cd client && npm run check-format && npm run check-lint
- name: Build NextJS project
run: cd client && npm run build
build-backend:
name: Build Backend
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v2
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Run dotnet format
run: cd api && dotnet format --verify-no-changes
- name: Build dotnet project
run: cd api && dotnet build
build-api-v2:
name: Build api_v2 backend
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.1.0
- name: Install modules
run: cd api_v2 && npm ci
- name: Build NestJS project
run: cd api_v2 && npm run build
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create backend env file
run: cp .env.api.example .env.api
- name: Create frontend env file
run: cp .env.client.example .env.client
- name: Create db env file
run: cp .env.db.example .env.db
- name: Create api_v2 env file
run: cp .env.api_v2.example .env.api_v2
- name: Build the Docker image
run: docker compose build