diff --git a/README.md b/README.md index 5f6ed9d0..324de619 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,13 @@ This is a basic Express.js server used for JS Dev Experience documentation, in p npm start ``` -# Resources +## Contributions + +* Legal files: If your PR removes the legal files, you PR will be closed. +* Azure Pipelines: Azure pipeline example files should be put in the `azure-pipelines` directory. The file name should indicate the type of pipeline. That should be the only file in your PR or it will be closed. + + +## Resources * [Dev Containers](docs/devcontainer.md) * [Sample: App Service full stack with Authentication](https://github.com/azure-samples/js-e2e-web-app-easy-auth-app-to-app) diff --git a/azure-pipelines/junit-test-result.yml b/azure-pipelines/junit-test-result.yml new file mode 100644 index 00000000..022e73f2 --- /dev/null +++ b/azure-pipelines/junit-test-result.yml @@ -0,0 +1,26 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + npm test +- task: PublishTestResults@2 + inputs: + testResultsFormat: 'JUnit' + testResultsFiles: '**/TEST-*.xml' + displayName: 'npm install and build' \ No newline at end of file