Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Application

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: yarn install

- name: Generate code
run: make gen

- name: Build application
run: make build
29 changes: 29 additions & 0 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Docker Image

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
image-build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: yarn install

- name: Generate code
run: make gen

- name: Build Docker image
run: make image-build
5 changes: 4 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
GIT_VERSION = `git rev-parse --short main`
GIT_VERSION = `git rev-parse --short HEAD`

run:
yarn dev

build:
yarn build

gen:
yarn run openapi-ts -i http://dm2.sao.ru:81/api/openapi.json -o ./src/clients/backend

Expand Down