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 'rust:alpine'
					args '-u root --privileged'
				}
			}
			steps {
				sh 'apk add just'
				sh 'apk add deno'
				sh 'just deno-test'
			}
		}
	}
}