Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/bazel-out

# dependencies
/node_modules
node_modules/

# profiling files
chrome-profiler-events*.json
Expand Down
6 changes: 5 additions & 1 deletion CONTRIBUTOR_README.md → README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
![Runninghill Logo](./docs/runninghill.png "Runninghill")
![Runninghill Logo](https://github.com/Runninghill/rh-angular-rsa-form-validators/blob/67badb0d7a78dca5c7ccacb729bbb3e5b0c5f8db/docs/runninghill.png?raw=true "Runninghill")

# Angular South African Form Validators

> Please note that this is the README for contributors, if you
> need instructions on how to consume this package, please take a
> look [here](https://github.com/Runninghill/rh-angular-rsa-form-validators/blob/main/projects/rh-rsa-form-validators/README.md).
A set of South African specific validators for Angular forms.

# Getting Started🏁
Expand Down
71 changes: 63 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,66 @@ trigger:
pool:
vmImage: ubuntu-latest

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
stages:
- stage: PRTest
displayName: PR Test Stage
jobs:
- job: PR_Test
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.16.x'
displayName: 'Install Node.js'

- script: npm install -g @angular/cli
displayName: 'Install Angular CLI'

- task: Npm@1
inputs:
workingDir: $(System.DefaultWorkingDirectory)/projects/rh-rsa-form-validators
command: 'install'
displayName: 'Install package dependencies'

- task: Npm@1
inputs:
workingDir: $(System.DefaultWorkingDirectory)/projects/rh-rsa-form-validators
command: 'custom'
customCommand: 'run lint'
displayName: 'Run eslint checks'

- task: Npm@1
inputs:
workingDir: $(System.DefaultWorkingDirectory)/projects/rh-rsa-form-validators
command: 'custom'
customCommand: 'run test'
displayName: 'Run unit tests'


- stage: Publish
displayName: Publish to NPM
dependsOn: PRTest
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
jobs:
- job: Publish_to_npm
steps:
- task: Npm@1
inputs:
workingDir: $(System.DefaultWorkingDirectory)
command: 'install'
displayName: 'Install workspace dependencies'

- task: Npm@1
inputs:
workingDir: $(System.DefaultWorkingDirectory)/projects/rh-rsa-form-validators
command: 'custom'
customCommand: 'run build'
displayName: 'Build package'

- task: Npm@1
inputs:
workingDir: $(System.DefaultWorkingDirectory)/dist/rh-rsa-form-validators
command: 'custom'
customCommand: 'publish --access public'
customEndpoint: 'npm_runninghill'
displayName: 'Publish to npmjs.org'
Loading