Skip to content

Commit

Permalink
Update migrating-from-jenkins-to-github-actions.md (#493)
Browse files Browse the repository at this point in the history
Fixes #395
  • Loading branch information
casals authored Nov 3, 2020
1 parent 300a201 commit d9d5aa5
Showing 1 changed file with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,25 +232,22 @@ Jenkins Pipeline

```yaml
pipeline {
agent none
stages {
stage('Run Tests') {
parallel {
stage('Test On MacOS') {
agent { label "macos" }
tools { nodejs "node-12" }
steps {
dir("scripts/myapp") {
sh(script: "npm install -g bats")
sh(script: "bats tests")
}
}
agent none
stages {
stage('Run Tests') {
matrix {
axes {
axis {
name: 'PLATFORM'
values: 'macos', 'linux'
}
stage('Test On Linux') {
agent { label "linux" }
}
agent { label "${PLATFORM}" }
stages {
stage('test') {
tools { nodejs "node-12" }
steps {
dir("script/myapp") {
dir("scripts/myapp") {
sh(script: "npm install -g bats")
sh(script: "bats tests")
}
Expand All @@ -259,6 +256,7 @@ pipeline {
}
}
}
}
}
```

Expand Down

0 comments on commit d9d5aa5

Please sign in to comment.