Skip to content

Commit

Permalink
feat(ci): switch to GitLab CI
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <willsoto@users.noreply.github.com>
willsoto committed Feb 6, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2388553 commit 545f2ac
Showing 2 changed files with 43 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/main.workflow

This file was deleted.

43 changes: 43 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
stages:
- build
- test

# cache using branch name
# https://gitlab.com/help/ci/caching/index.md
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm
- node_modules

.install:
before_script:
- yarn install

.test:
extends: .install
stage: test
script:
- yarn test --coverage

.build:
extends: .install
stage: build
script:
- yarn build

test-10:
extends: .test
image: node:10-alpine

build-10:
extends: .build
image: node:10-alpine

test-11:
extends: .test
image: node:11-alpine

build-11:
extends: .build
image: node:11-alpine

0 comments on commit 545f2ac

Please sign in to comment.