Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Created November 25, 2019 10:15
Show Gist options
  • Save cdbkr/be380632bc101f6fdb62756dd611d75f to your computer and use it in GitHub Desktop.
Save cdbkr/be380632bc101f6fdb62756dd611d75f to your computer and use it in GitHub Desktop.
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: nodejs-ci
spec:
inputs:
resources:
- name: nuxt-repo
type: git
steps:
- name: npm-install
image: node
command:
- /bin/sh
- -c
args:
- npm install
workingDir: /workspace/nuxt-repo
- name: npm-audit
image: node
command:
- /bin/sh
- -c
args:
- npm audit
workingDir: /workspace/nuxt-repo
- name: lint
image: node
command:
- /bin/sh
- -c
args:
- npm run lint
workingDir: /workspace/nuxt-repo
- name: test
image: node
command:
- /bin/sh
- -c
args:
- npm run test
workingDir: /workspace/nuxt-repo
- name: build
image: node
command:
- /bin/sh
- -c
args:
- npm run build
workingDir: /workspace/nuxt-repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment