You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
790 B
46 lines
790 B
---
|
|
resources:
|
|
- name: repo
|
|
type: git
|
|
icon: github
|
|
source:
|
|
uri: https://github.com/nodejs/nodejs.org.git
|
|
|
|
- name: node-image
|
|
type: registry-image
|
|
source:
|
|
repository: node
|
|
tag: 18
|
|
|
|
jobs:
|
|
- name: test
|
|
public: true
|
|
plan:
|
|
- get: node-image
|
|
- get: repo
|
|
trigger: true
|
|
- task: install
|
|
image: node-image
|
|
config:
|
|
inputs:
|
|
- name: repo
|
|
outputs:
|
|
- name: dependencies
|
|
path: repo/node_modules
|
|
platform: linux
|
|
run:
|
|
path: npm
|
|
args: ["install"]
|
|
dir: repo
|
|
- task: test
|
|
image: node-image
|
|
config:
|
|
inputs:
|
|
- name: repo
|
|
- name: dependencies
|
|
path: repo/node_modules
|
|
platform: linux
|
|
run:
|
|
path: npm
|
|
args: ["run", "test"]
|
|
dir: repo
|