diff --git a/.drone.yml b/.drone.yml index 1535a53..4cb4448 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,46 +1,46 @@ -# kind: pipeline -# type: docker -# name: server_build_and_test -# -# trigger: -# branch: -# - main -# event: -# - push -# -# steps: -# - name: build_server -# image: node -# commands: -# - npm ci -# - npm run build -w @calchat/shared -# - npm run build -w @calchat/server -# -# - name: jest_server -# image: node -# commands: -# - npm run test -w @calchat/server -# -# --- -# -# kind: pipeline -# type: docker -# name: check_for_formatting -# -# trigger: -# branch: -# - main -# event: -# - push -# -# steps: -# - name: format_check -# image: node -# commands: -# - npm ci -# - npm run check_format -# -# --- +kind: pipeline +type: docker +name: server_build_and_test + +trigger: + branch: + - main + event: + - push + +steps: + - name: build_server + image: node + commands: + - npm ci + - npm run build -w @calchat/shared + - npm run build -w @calchat/server + + - name: jest_server + image: node + commands: + - npm run test -w @calchat/server + +--- + +kind: pipeline +type: docker +name: check_for_formatting + +trigger: + branch: + - main + event: + - push + +steps: + - name: format_check + image: node + commands: + - npm ci + - npm run check_format + +--- kind: pipeline type: docker @@ -191,9 +191,9 @@ steps: status: - success -# depends_on: -# - server_build_and_test -# - check_for_formatting +depends_on: + - server_build_and_test + - check_for_formatting ---