-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
408 additions
and
290 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node environment | ||
uses: actions/setup-node@v1.4.2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Download cache | ||
uses: actions/cache@v2.0.0 | ||
with: | ||
key: cds-routing-handlers-cache | ||
path: node_modules | ||
|
||
- name: Install and build | ||
run: | | ||
yarn install | ||
yarn build | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cds-routing-handlers-artifacts | ||
path: lib | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
pull_request: | ||
branches: [master, develop] | ||
# Manual run | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Download cache | ||
uses: actions/cache@v2.0.0 | ||
with: | ||
key: cds-routing-handlers-cache | ||
path: node_modules | ||
|
||
- name: Install and build | ||
run: | | ||
yarn install | ||
yarn build | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cds-routing-handlers-artifacts | ||
path: lib |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node environment | ||
uses: actions/setup-node@v1.4.2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Download cache | ||
uses: actions/cache@v2.0.0 | ||
with: | ||
key: cds-routing-handlers-cache | ||
path: node_modules | ||
|
||
- name: Install and build | ||
run: | | ||
yarn install | ||
yarn build | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cds-routing-handlers-artifacts | ||
path: lib | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: cds-routing-handlers-artifacts | ||
path: lib | ||
|
||
- name: Setup node environment | ||
uses: actions/setup-node@v1.4.2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Publish to npm | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup node environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Download cache | ||
uses: actions/cache@v2.0.0 | ||
with: | ||
key: cds-routing-handlers-cache | ||
path: node_modules | ||
|
||
- name: Install and build | ||
run: | | ||
yarn install | ||
yarn build | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cds-routing-handlers-artifacts | ||
path: lib | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: cds-routing-handlers-artifacts | ||
path: lib | ||
|
||
- name: Setup node environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Publish to npm | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
export namespace TestService { | ||
export enum ActionGreeter { | ||
name = "greeter", | ||
paramTitle = "title", | ||
paramName = "name", | ||
} | ||
|
||
export interface IActionGreeterParams { | ||
title: string; | ||
name: string; | ||
} | ||
|
||
export enum FuncHello { | ||
name = "hello", | ||
paramName = "name", | ||
} | ||
|
||
export interface IFuncHelloParams { | ||
name: string; | ||
} | ||
|
||
export interface IGreeter { | ||
Id: string; | ||
Name: string; | ||
Message: string; | ||
} | ||
|
||
export enum Entity { | ||
Greeter = "TestService.Greeter", | ||
} | ||
|
||
export enum SanitizedEntity { | ||
Greeter = "Greeter", | ||
} | ||
} | ||
|
||
export enum Entity {} | ||
|
||
export enum SanitizedEntity {} | ||
export namespace TestService { | ||
export enum ActionGreeter { | ||
name = "greeter", | ||
paramTitle = "title", | ||
paramName = "name", | ||
} | ||
|
||
export interface IActionGreeterParams { | ||
title: string; | ||
name: string; | ||
} | ||
|
||
export enum FuncHello { | ||
name = "hello", | ||
paramName = "name", | ||
} | ||
|
||
export interface IFuncHelloParams { | ||
name: string; | ||
} | ||
|
||
export interface IGreeter { | ||
Id: string; | ||
Name: string; | ||
Message: string; | ||
} | ||
|
||
export enum Entity { | ||
Greeter = "TestService.Greeter", | ||
} | ||
|
||
export enum SanitizedEntity { | ||
Greeter = "Greeter", | ||
} | ||
} | ||
|
||
export enum Entity {} | ||
|
||
export enum SanitizedEntity {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.