Sitelet https://github.com/open-rpc/client-js/commit/3b3aaf6
Skip to content

Commit 3b3aaf6

Browse files
authored
fix: add simple example
1 parent ed3781a commit 3b3aaf6

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

‎TESTING.md‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,44 @@
33
Testing is a project specific concern. That being said, each project may use a jenkins pipeline to setup CI and CD for the project.
44

55
We use [jenkins-vagrant](https://github.com/etclabscore/jenkins-vagrant)
6+
7+
Here is an example jenkins file that runs node project tests in each of osx, linux and windows:
8+
9+
```yaml
10+
pipeline {
11+
agent none
12+
stages {
13+
stage('Run Tests') {
14+
parallel {
15+
stage('test') {
16+
agent {
17+
label 'macos'
18+
}
19+
steps {
20+
sh 'npm install'
21+
sh 'npm test'
22+
}
23+
}
24+
stage('linux') {
25+
agent {
26+
label 'linux'
27+
}
28+
steps {
29+
sh 'npm install'
30+
sh 'npm test'
31+
}
32+
}
33+
stage('windows') {
34+
agent {
35+
label 'windows'
36+
}
37+
steps {
38+
bat 'npm install'
39+
bat 'npm test'
40+
}
41+
}
42+
}
43+
}
44+
}
45+
}
46+
```

0 commit comments

Comments
 (0)