actions test6
Frontend CI/CD / build (web-office) (push) Failing after 0s
Details
Frontend CI/CD / build (web-office) (push) Failing after 0s
Details
This commit is contained in:
parent
a650bf6b54
commit
3dfa5ec99a
|
@ -1,17 +1,37 @@
|
||||||
name: Gitea Actions Demo
|
name: Frontend CI/CD
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
build:
|
||||||
runs-on: pansoft
|
runs-on: pansoft
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
project: [web-office]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
# Checkout the repository
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
- name: Checkout repository
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
uses: actions/checkout@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
# Set up Node.js environment
|
||||||
- name: List files in the repository
|
- name: Set up Node.js
|
||||||
run: |
|
uses: actions/setup-node@v3
|
||||||
ls ${{ gitea.workspace }}
|
with:
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
node-version: "22" # 确保使用与你项目兼容的 Node.js 版本
|
||||||
|
|
||||||
|
# Install pnpm
|
||||||
|
- name: Install pnpm
|
||||||
|
run: npm install -g pnpm
|
||||||
|
|
||||||
|
# Install dependencies using Turborepo
|
||||||
|
- name: Install dependencies with Turborepo
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
# Build the project
|
||||||
|
- name: Build project
|
||||||
|
env:
|
||||||
|
TURBO_FORCE: true # 强制全量构建,确保 Turborepo 正确地优化构建过程
|
||||||
|
run: pnpm build --filter apps/${{ matrix.project }}
|
||||||
|
|
||||||
|
# 你可以在这里添加更多步骤,例如部署到服务器或生成的静态文件存储。
|
||||||
|
|
Loading…
Reference in New Issue