mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Merge pull request #68 from prymitive/nvmrc
chore(ci): use nvmrc & npmrc to set nodejs/npm version/options
This commit is contained in:
@@ -7,9 +7,6 @@ defaults_go: &DEFAULTS_GO
|
||||
|
||||
defaults_js: &DEFAULTS_JS
|
||||
language: node_js
|
||||
# FIXME 8.12 includes npm 6.4.1 which generates a different lock file on
|
||||
# macOS and Linux, causing diffs on CI and we fail builds when that happens
|
||||
node_js: "8.11.4" # FIXME same in the 'Build and Deploy' stage
|
||||
# install defaults to "npm install", which is done via make
|
||||
install: []
|
||||
cache:
|
||||
@@ -65,7 +62,7 @@ jobs:
|
||||
before_script:
|
||||
# this stage needs to build everything including assets file and that
|
||||
# requires running webpack, so we need nodejs here
|
||||
- nvm install 8.11.4
|
||||
- nvm install $(< .nvmrc)
|
||||
script:
|
||||
# compile assets via webpack and build those into bindata_assetfs.go file
|
||||
- make bindata_assetfs.go
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:8-alpine as nodejs-builder
|
||||
FROM node:8.11.4-alpine as nodejs-builder
|
||||
RUN apk add --update make git
|
||||
COPY . /karma
|
||||
RUN make -C /karma ui
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:8-alpine as nodejs-builder
|
||||
FROM node:8.11.4-alpine as nodejs-builder
|
||||
RUN apk add --update make git
|
||||
COPY . /karma
|
||||
RUN make -C /karma ui
|
||||
|
||||
Reference in New Issue
Block a user