2022-09-18 18:55:27 +08:00
|
|
|
version: 18
|
|
|
|
jobs:
|
2022-09-18 20:31:27 +08:00
|
|
|
- name: vue ci
|
2022-09-18 18:55:27 +08:00
|
|
|
steps:
|
2022-09-18 20:31:27 +08:00
|
|
|
- !CheckoutStep
|
|
|
|
name: checkout
|
|
|
|
cloneCredential: !DefaultCredential {}
|
|
|
|
withLfs: false
|
|
|
|
withSubmodules: false
|
|
|
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
|
|
- !SetBuildVersionStep
|
|
|
|
name: set build version
|
|
|
|
buildVersion: '@script:builtin:node:determine-project-version@'
|
|
|
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
|
|
- !CommandStep
|
|
|
|
name: build & test
|
|
|
|
runInContainer: true
|
|
|
|
image: node:16.17.0-alpine
|
|
|
|
interpreter: !DefaultInterpreter
|
|
|
|
commands:
|
2022-09-18 20:45:41 +08:00
|
|
|
- yarn --registry=https://registry.npm.taobao.org
|
|
|
|
- npx nuxt build
|
2022-09-18 20:31:27 +08:00
|
|
|
useTTY: false
|
2022-09-18 18:55:27 +08:00
|
|
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
|
|
|
triggers:
|
2022-09-18 20:31:27 +08:00
|
|
|
- !BranchUpdateTrigger {}
|
2022-09-18 18:55:27 +08:00
|
|
|
retryCondition: never
|
|
|
|
maxRetries: 3
|
|
|
|
retryDelay: 30
|
|
|
|
cpuRequirement: 250
|
|
|
|
memoryRequirement: 256
|
2022-09-18 20:31:27 +08:00
|
|
|
caches:
|
|
|
|
- key: npm-cache
|
|
|
|
path: /root/.npm
|
2022-09-18 18:55:27 +08:00
|
|
|
timeout: 3600
|