-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
62 lines (55 loc) · 1.52 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Adapted from:
# https://docs.gitlab.com/ee/ci/examples/semantic-release.html
# https://semantic-release.gitbook.io/semantic-release/recipes/recipes/gitlab-ci
# ATTENTION: Requires GITLAB_TOKEN variable to be set via project CI/CD config with
# a project/group Access Token
workflow:
rules:
- if: $CI_COMMIT_BRANCH
variables:
# Use the OverlayFS driver for improved performance.
DOCKER_DRIVER: overlay
stages:
- test
- lint
- build
# - release
test:
stage: test
image: hayd/alpine-deno
needs: []
script:
- deno test lazer.test.ts
lint:
stage: lint
image: hayd/alpine-deno
needs: []
script:
- deno lint --unstable lazer.ts
# build:
# stage: build
# image: hayd/alpine-deno
# needs: [ test, lint ]
# script:
# - deno run --allow-all scripts/build_lazer_js.ts
# publish-npm-package:
# stage: release
# image: node:latest
# needs: []
# before_script:
# # - npm ci --cache .npm --prefer-offline
# # Setup .npmrc for publishing
# - |
# {
# echo "registry.npmjs.org/:_authToken=\${NPM_TOKEN}"
# } | tee .npmrc
# - apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
# - npm install @semantic-release/gitlab-config
# cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - .npm/
# script:
# - npx semantic-release
# rules:
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH