This commit is contained in:
@@ -1,71 +1,47 @@
|
|||||||
# Azure Pipelines — React Native (JS CI)
|
# Gitea Actions workflow (GitHub Actions–compatible schema).
|
||||||
# https://learn.microsoft.com/azure/devops/pipelines/yaml-schema
|
# Root `azure-pipelines.yml` remains for Azure DevOps; this file runs on Gitea Actions.
|
||||||
#
|
#
|
||||||
# Same self-hosted pool as other repos — if this pipeline stays Queued or ignores your agent:
|
# Self-hosted Azure pool "PerformicsCICD" maps here to `runs-on` labels on your act_runner.
|
||||||
# 1) Pipelines → this pipeline → Edit → ⋯ → Triggers → YAML file path must be THIS file
|
# Example: `runs-on: [self-hosted, ubuntu-22.04]` or whatever labels you registered.
|
||||||
# (repo root: /azure-pipelines.yml).
|
|
||||||
# 2) Project Settings → Agent pools → PerformicsCICD → Security → grant this pipeline access
|
|
||||||
# (or enable "Grant access permission to all pipelines").
|
|
||||||
#
|
|
||||||
# Run on every push directly to main (and when merging into main via PR).
|
|
||||||
name: PerformicsDevOps-$(Date:yyyyMMdd)$(Rev:.r)
|
|
||||||
|
|
||||||
trigger:
|
name: Performics DevOps
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
include:
|
|
||||||
- main
|
- main
|
||||||
|
|
||||||
pr:
|
env:
|
||||||
branches:
|
NODE_VERSION: '22'
|
||||||
include:
|
|
||||||
- main
|
|
||||||
|
|
||||||
variables:
|
|
||||||
NODE_VERSION: '22.x'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: BuildAndTest
|
build-and-test:
|
||||||
displayName: Performics DevOps Pipeline
|
name: Performics DevOps Pipeline
|
||||||
# Self-hosted pool "PerformicsCICD" (same pattern as working Deeplink/azure-pipelines.yml).
|
runs-on: ubuntu-22.04
|
||||||
pool:
|
|
||||||
name: PerformicsCICD
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- uses: actions/checkout@v4
|
||||||
displayName: Checkout
|
|
||||||
continueOnError: false
|
|
||||||
|
|
||||||
- task: NodeTool@0
|
- uses: actions/setup-node@v4
|
||||||
displayName: Use Node.js
|
with:
|
||||||
continueOnError: false
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
inputs:
|
|
||||||
versionSpec: $(NODE_VERSION)
|
|
||||||
|
|
||||||
- script: |
|
- name: Diagnostics
|
||||||
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
node -v
|
node -v
|
||||||
npm -v
|
npm -v
|
||||||
pwd
|
pwd
|
||||||
displayName: Diagnostics
|
|
||||||
continueOnError: false
|
|
||||||
|
|
||||||
- script: |
|
- name: npm ci
|
||||||
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
npm ci
|
npm ci
|
||||||
displayName: npm ci
|
|
||||||
continueOnError: false
|
|
||||||
|
|
||||||
# - script: |
|
- name: Android assembleRelease
|
||||||
# set -euo pipefail
|
run: |
|
||||||
# npm run lint
|
|
||||||
# displayName: ESLint
|
|
||||||
# continueOnError: false
|
|
||||||
|
|
||||||
- script: |
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd android
|
cd android
|
||||||
./gradlew assembleRelease
|
./gradlew assembleRelease
|
||||||
displayName: Android assembleRelease
|
|
||||||
continueOnError: false
|
|
||||||
|
|
||||||
# - script: npm test -- --ci --coverage
|
|
||||||
# displayName: Jest
|
|
||||||
|
|||||||
Reference in New Issue
Block a user