From 71af6bb68002b46280a92e2f5876b4129858075d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 15 Sep 2021 21:22:18 +0200 Subject: [PATCH] add base CI for Deno --- .gitlab-ci.yml | 16 ++++++++++++++++ cli/Makefile | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c6c1107 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +lint: + stage: test + image: denoland/deno:latest + script: + - cd cli + - make lint + +build: + stage: build + image: denoland/deno:latest + script: + - cd cli + - make build + artifacts: + paths: + - cli/kollagen diff --git a/cli/Makefile b/cli/Makefile index 9ceb276..f7a0b4c 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -1,7 +1,7 @@ -all: lint compile +all: lint build lint: deno lint -compile: +build: deno compile --import-map ./import_map.json --allow-read --allow-write -o kollagen main.ts \ No newline at end of file