From aa51567b7357956238d9b0e599d12d98a99bc05f Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 3 Jan 2022 20:24:43 +0530 Subject: Basic CI pipeline using Gitlab CI Signed-off-by: Vijay A --- .gitlab-ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c15154c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,40 @@ +image: node:16.13.1 + +cache: + paths: + - node_modules/ + - .yarn/cache + +stages: + - test + - lint + - build + +Run tests: + stage: test + before_script: + - yarn install + script: + - yarn test + +Run linter and static analyzer: + stage: lint + before_script: + - yarn install + script: + - yarn typecheck + +# TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts +Build the app: + stage: build + before_script: + - yarn install + script: + - yarn compile + # TODO: Need to publish the built distributable file + artifacts: + paths: + - dist/ + exclude: + - dist/builder-debug.yml + - dist/builder-effective-config.yaml -- cgit v1.2.3