Refactor build workflow
All checks were successful
CI / scan-backend (push) Successful in 10s
OSV-Scanner Scheduled Scan / scan-scheduled (push) Successful in 9m25s
CI / build-frontend (push) Successful in 9m40s
CI / build-backend (push) Successful in 9m27s

This commit is contained in:
2025-12-29 21:18:30 -06:00
parent cd3d9862c3
commit ae08e4dc5f

View File

@@ -31,47 +31,31 @@ jobs:
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
fi
- name: Download frontend from CI
id: download-frontend
continue-on-error: true
uses: https://git.quad4.io/actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: frontend-build
path: build/
github-token: ${{ secrets.GITEA_TOKEN }}
workflow: ci.yml
commit: ${{ github.sha }}
- name: Setup Node.js for frontend build
if: steps.download-frontend.outcome == 'failure'
uses: https://git.quad4.io/actions/setup-node@f024d6d0d28a7923957f5e6ea99ca485084e5c58 # v4
- name: Setup Node.js
uses: https://git.quad4.io/actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: pnpm
- name: Setup Task for frontend
if: steps.download-frontend.outcome == 'failure'
uses: https://git.quad4.io/actions/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1
with:
version: '3.46.3'
- name: Build frontend if not downloaded
if: steps.download-frontend.outcome == 'failure'
run: |
task setup
task install:ci
task build:frontend
- name: Setup Go
uses: https://git.quad4.io/actions/setup-go@f50900cd786a0c549eed5a472b4f2c371ae8589f # v5
with:
go-version: '1.25.5'
- name: Setup Task
uses: https://git.quad4.io/actions/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1
with:
version: '3.46.3'
- name: Setup environment
run: task setup
- name: Install dependencies
run: task install:ci
- name: Build frontend
run: task build:frontend
- name: Setup Go
uses: https://git.quad4.io/actions/setup-go@f50900cd786a0c549eed5a472b4f2c371ae8589f # v5
with:
go-version: '1.25.5'
- name: Build server binaries
run: |
task build:backend