From b8d4ab28ee4113402561e309814c3b75e31d73d9 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Mon, 28 Nov 2022 20:25:01 +0100 Subject: [PATCH] Started CI drone setup with build and lint steps --- .drone.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..39e8bcc --- /dev/null +++ b/.drone.yml @@ -0,0 +1,48 @@ +--- +kind: pipeline +type: docker +name: Lint and build project + +platform: + os: linux + arch: amd64 + +steps: + - name: Build project + image: node:18 + commands: + - yarn + - yarn build + + - name: Lint project + image: node:18 + commands: + - yarn + - yarn lint + +--- +kind: pipeline +type: docker +name: Compile docker image + +platform: + os: linux + arch: amd64 + +steps: + - name: Build + image: node:18 + commands: + - yarn + - yarn build + +depends_on: + - Lint and build project + +trigger: + branch: + - main + event: + exclude: + - pull_request +