fix(odata): added some tests #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Usage notes ## | |
# | |
# Two things are needed: | |
# | |
# 1. configure path matching the package in the "Detect changes" step below. | |
# This allows to match a "package" idenfifier to changes in a subdirectory. | |
# e.g.: | |
# my-package: '**/my-package/**' | |
# | |
# 2. configure the package in .github/js-packages.json. | |
# This allows to define variables that will be used in the pipeline. | |
# e.g: | |
# { | |
# "my-package": {<-- the "package" identifier | |
# "name": "@neuroglia/my-package", <-- the actual name of the package on the registry | |
# "path": "./", <-- the path from where to run npm scripts and where angular.json is located | |
# } | |
# } | |
### | |
name: Continous integration entry point for JS | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'projects/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'projects/**' | |
jobs: | |
changes: | |
# Skip if it's not running in the `neuroglia-io/js-framework` repo | |
if: github.repository == 'neuroglia-io/js-framework' | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
packages: ${{ steps.detection.outputs.changes }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Detect changes | |
id: detection | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
common: 'projects/neuroglia/common/**' | |
string-formatter: 'projects/neuroglia/string-formatter/**' | |
logging: 'projects/neuroglia/logging/**' | |
logging-transport-console: 'projects/neuroglia/logging-transport-console/**' | |
integration: 'projects/neuroglia/integration/**' | |
authorization-rule: 'projects/neuroglia/authorization-rule/**' | |
angular-logging: 'projects/neuroglia/angular-logging/**' | |
angular-common: 'projects/neuroglia/angular-common/**' | |
angular-oidc: 'projects/neuroglia/angular-oidc/**' | |
angular-rest-core: 'projects/neuroglia/angular-rest-core/**' | |
angular-signalr: 'projects/neuroglia/angular-signalr/**' | |
angular-ngrx: 'projects/neuroglia/angular-ngrx/**' | |
angular-application-common: 'projects/neuroglia/angular-application-common/**' | |
angular-data-source-queryable: 'projects/neuroglia/angular-data-source-queryable/**' | |
angular-data-source-odata: 'projects/neuroglia/angular-data-source-odata/**' | |
angular-data-source-graphql: 'projects/neuroglia/angular-data-source-graphql/**' | |
angular-ngrx-component-store-queryable-table: 'projects/neuroglia/angular-ngrx-component-store-queryable-table/**' | |
angular-ngrx-component-store-odata-table: 'projects/neuroglia/angular-ngrx-component-store-odata-table/**' | |
angular-ngrx-component-store-graphql-table: 'projects/neuroglia/angular-ngrx-component-store-graphql-table/**' | |
angular-ui-json-presenter: 'projects/neuroglia/angular-ui-json-presenter/**' | |
angular-ui-material-queryable-table: 'projects/neuroglia/angular-ui-material-queryable-table/**' | |
angular-ui-material-odata-table: 'projects/neuroglia/angular-ui-material-odata-table/**' | |
angular-ui-material-graphql-table: 'projects/neuroglia/angular-ui-material-graphql-table/**' | |
angular-native-federation: 'projects/neuroglia/angular-native-federation/**' | |
angular-native-federation-tools: 'projects/neuroglia/angular-native-federation-tools/**' | |
- name: Defined output 'packages' as | |
run: echo "${{ steps.detection.outputs.changes }}" | |
pipeline: | |
needs: changes | |
strategy: | |
max-parallel: 1 | |
fail-fast: false | |
matrix: | |
package: ${{ fromJSON(needs.changes.outputs.packages) }} | |
uses: ./.github/workflows/js-package-pipeline.yml | |
secrets: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
with: | |
package: ${{ matrix.package }} |