kind: pipeline type: docker name: default steps: - name: install image: node:12 commands: - npm install -g npm@latest && npm install - name: lint image: node:12 commands: - npm run lint when: branch: - main - dev - name: build image: node:12 commands: - npm run dist when: branch: - main - dev - name: test image: node:12 commands: - apt-get update && apt-get install -y wget gnupg && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ && apt-get update && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends && rm -rf /var/lib/apt/lists/* - npm run test when: branch: - main - dev - name: npm image: plugins/npm settings: token: from_secret: npm_token email: from_secret: npm_email when: event: - tag