tercul-frontend/.gitea/workflows/build.yml
Damir Mukimov 22861af262
Some checks failed
Build / Build Application (push) Failing after 1m2s
Lint / TypeScript Type Check (push) Failing after 1m1s
Docker Build / Build Docker Image (push) Failing after 2m34s
Add Gitea Actions workflows for CI/CD
2025-12-24 23:27:52 +01:00

49 lines
1.1 KiB
YAML

name: Build
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build-app:
name: Build Application
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Enable Corepack
run: corepack enable
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Cache yarn dependencies
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build application
run: yarn build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: frontend-dist
path: dist/
retention-days: 30