From 030a84253ca348ed72579dee07a89eb62045d9cd Mon Sep 17 00:00:00 2001 From: ccmywish Date: Tue, 9 May 2023 05:13:17 +0000 Subject: [PATCH] Create test-pipeline.yml --- .workflow/test-pipeline.yml | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .workflow/test-pipeline.yml diff --git a/.workflow/test-pipeline.yml b/.workflow/test-pipeline.yml new file mode 100644 index 0000000..4b4658f --- /dev/null +++ b/.workflow/test-pipeline.yml @@ -0,0 +1,62 @@ +version: '1.0' +name: test-pipeline +displayName: 测试 +triggers: + trigger: auto + push: + branches: + precise: + - main + paths: + precise: + - install.sh + pr: + branches: + precise: + - main + paths: + precise: + - install.sh +stages: + - name: stage-02f2cd93 + displayName: Test + strategy: naturally + trigger: auto + executor: [] + steps: + - step: build@ruby + name: install_nvm-cn + displayName: 安装 + rubyVersion: 3.0.2 + commands: + - bash -c "$(curl -fsSL https://gitee.com/RubyKids/nvm-cn/raw/main/install.sh)" + caches: + - ~/.nvm + notify: [] + strategy: + retry: '0' + timeout: 1 + expression: [] + - step: build@ruby + name: test-nvm_cn + displayName: 测试 + rubyVersion: 3.0.2 + commands: + - if [ -f "$HOME/.nvm/nvm.sh" ];then + - ' echo "=> 安装目录完好"' + - else + - ' echo "=> 安装目录不完整"' + - ' exit 1' + - fi + - '' + - if [ $(command -v nvm) ];then + - ' echo "=> nvm命令执行成功"' + - else + - ' echo "=> nvm命令无法执行"' + - ' exit 2' + - fi + caches: [] + notify: [] + strategy: + retry: '0' + dependsOn: install_nvm-cn