Merge branch 'main' into add-authentik-sso
This commit is contained in:
commit
a14c950ce5
|
|
@ -8,6 +8,10 @@ jobs:
|
|||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read # for actions/checkout and general read access
|
||||
packages: write # to push images to ghcr.io
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
|
|
@ -27,25 +27,13 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
stage('Run Unit Tests') {
|
||||
steps {
|
||||
sh 'npm test'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Project') {
|
||||
steps {
|
||||
sh 'npm run build 2>&1 | tee build_report.log' // Captures build output
|
||||
sh 'npm run build'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit '**/reports/junit.xml'
|
||||
archiveArtifacts artifacts: 'reports/**', fingerprint: true
|
||||
archiveArtifacts artifacts: 'build_report.log', fingerprint: true
|
||||
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
|
||||
}
|
||||
success {
|
||||
echo 'Build completed successfully!'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue