32 lines
820 B
Groovy
32 lines
820 B
Groovy
pipeline {
|
|
agent none
|
|
stages {
|
|
stage('bun') {
|
|
agent {
|
|
docker {
|
|
image 'oven/bun:1-debian'
|
|
args '-u root --privileged'
|
|
}
|
|
}
|
|
steps {
|
|
sh 'bun test --coverage'
|
|
}
|
|
}
|
|
stage('deno') {
|
|
agent {
|
|
docker {
|
|
image 'denoland/deno'
|
|
args '-u root --privileged'
|
|
}
|
|
}
|
|
steps {
|
|
sh 'wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null'
|
|
sh 'echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list'
|
|
sh 'apt update'
|
|
sh 'apt install -y just'
|
|
sh 'just deno-test'
|
|
}
|
|
}
|
|
}
|
|
}
|