From 74580b7aa9bf7b49f6b4497913a15a8dbb9b15b2 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Sat, 27 Jul 2024 11:59:51 +0800 Subject: [PATCH] init --- .drone.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 526baef..d02d9b4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,19 @@ kind: pipeline -type: docker name: default steps: - - name: print-working-directory - image: alpine - commands: - - pwd +- name: build + image: node:16.18.1 + commands: + - npm install + - npm run build + +- name: test + image: node:16.18.1 + commands: + - npm run test + +#- name: deploy +# image: nginx:1.21 +# commands: +# - cp -r build/* /usr/share/nginx/html \ No newline at end of file