Skip to content

Commit 94344c4

Browse files
Fix test pipeline (#70)
* update pipeline setup * use latest docker-compose plugin
1 parent 6860baf commit 94344c4

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.buildkite/pipeline.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
steps:
2-
- label: "Tests"
2+
- name: ":mocha: Test"
3+
command: npm test
34
plugins:
4-
- docker-compose#v2.0.0:
5+
- docker-compose#v4.16.0:
56
config: test/docker-compose.yml
67
run: tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Buildkite Pipeline JSON Schema [![Build status](https://badge.buildkite.com/67d936a0910be01a8851c5e97156d54ac4d7ee39b7900b682b.svg?branch=master)](https://buildkite.com/buildkite/pipeline-schema)
1+
# Buildkite Pipeline JSON Schema [![Build status](https://badge.buildkite.com/67d936a0910be01a8851c5e97156d54ac4d7ee39b7900b682b.svg)](https://buildkite.com/buildkite/pipeline-schema)
22

33
A [JSON Schema](https://json-schema.org) for Buildkite’s [pipeline file format](https://buildkite.com/docs/pipelines/defining-steps), covering all current, documented options. Useful for linting/validating your pipeline.yml files using tools like [YAML VSCode Extension by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml).
44

test/Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
FROM node:18
1+
FROM node:18
2+
23
WORKDIR /app/test
3-
COPY package.json package-lock.json /app/test/
4-
RUN npm install
5-
COPY . /app/test
6-
CMD [ "npm", "test" ]
4+
5+
COPY package.json package-lock.json /app/test/
6+
RUN npm install
7+
8+
COPY . /app/test
9+
10+
CMD ["npm", "test"]

test/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.6'
21
services:
32
tests:
43
build: .

0 commit comments

Comments
 (0)