This file contains hidden or 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
| name: Publish to NPM | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - '**' | |
| jobs: | |
| create_tag_and_release: |
This file contains hidden or 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
| receivers: | |
| otlp: | |
| protocols: | |
| http: | |
| endpoint: 0.0.0.0:4318 | |
| exporters: | |
| otlp: | |
| endpoint: "collector-gateway:4320" | |
| insecure: true |
This file contains hidden or 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
| import * as Mongoose from "mongoose"; | |
| import { IDisposable } from "../../../../../../utils/idisposable"; | |
| export interface IMongoDbContext extends IDisposable { | |
| getColletion<TSchema extends Mongoose.AnyObject = Mongoose.AnyObject>(collectionName: string): Mongoose.Collection<TSchema>; | |
| } |
This file contains hidden or 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
| { | |
| "manifestVersion": 1, | |
| "id": "task-702d7430-c3a9-422a-87f2-569ed16ba6be", | |
| "name": "Coverage API", | |
| "version": "0.0.1", | |
| "publisher": "AlexAlves", | |
| "targets": [ | |
| { | |
| "id": "Microsoft.VisualStudio.Services" | |
| } |
This file contains hidden or 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
| import * as Request from "request"; | |
| const xml2js = require("xml2js"); | |
| const fs = require("fs"); | |
| const task = require("azure-pipelines-task-lib/task"); | |
| const parser = new xml2js.Parser({ attrkey: "ATTR" }); | |
| async function run() { | |
| try { | |
| const apiUrl = task.getInput("ApiUrl", true); |
This file contains hidden or 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
| import * as Request from "request"; | |
| const xml2js = require("xml2js"); | |
| const fs = require("fs"); | |
| const task = require("azure-pipelines-task-lib/task"); | |
| const parser = new xml2js.Parser({ attrkey: "ATTR" }); | |
| async function run() { | |
| /// ... code | |
| } |
This file contains hidden or 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
| import * as Request from "request"; | |
| const xml2js = require("xml2js"); | |
| const fs = require("fs"); | |
| const task = require("azure-pipelines-task-lib/task"); | |
| const parser = new xml2js.Parser({ attrkey: "ATTR" }); |
This file contains hidden or 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
| { | |
| "$schema": "https://raw.githubusercontent.com/Microsoft/azure-pipelines-task-lib/master/tasks.schema.json", | |
| "id": "702d7430-c3a9-422a-87f2-569ed16ba6be", | |
| "name": "APICoverageTest", | |
| "friendlyName": "API Coverage Test", | |
| "description": "Test coverage according to tested endpoints and what's in the swagger. Only support for JUnit test format.", | |
| "helpMarkDown": "", | |
| "category": "Test", | |
| "author": "Alex Alves", | |
| "version": { |
This file contains hidden or 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
| public class AppTenant | |
| { | |
| public AppTenant(string registerNumber) | |
| { | |
| RegisterNumber = registerNumber; | |
| } | |
| public string RegisterNumber { get; } | |
| } |
This file contains hidden or 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
| [Route("api/[controller]")] | |
| [ApiController] | |
| public class BusinessController : ControllerBase | |
| { | |
| // ... some code | |
| [HttpPost] | |
| [Route("authorAndUser")] | |
| public async Task<IActionResult> InsertAuthorAndUser([FromBody] CreateAuthorAndUserModel authorAndUserModel) | |
| { |
NewerOlder