Created
November 25, 2019 10:15
-
-
Save cdbkr/be380632bc101f6fdb62756dd611d75f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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