Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update migrating-from-jenkins-to-github-actions.md
Fixes #395
  • Loading branch information
casals authored Oct 13, 2020
commit e4ff8923d56605ab25929d04ee2a9892a4f3b87e
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