From 4e29c25d23ed92b08010bad678ce59ce075dd6bc Mon Sep 17 00:00:00 2001 From: Sly Gryphon Date: Mon, 8 Jun 2020 17:14:25 +1000 Subject: [PATCH 1/3] Add link to Nuget package --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bee2450..291bf31 100644 --- a/readme.md +++ b/readme.md @@ -15,7 +15,7 @@ Banjo is built as a [DotNet Core Global Tool](https://docs.microsoft.com/en-us/d ## Getting Banjo -Banjo is published as a dotnet global tool on nuget.org. +Banjo is published as a dotnet global tool on nuget.org, [Banjo.CLI](https://www.nuget.org/packages/Banjo.CLI/). To install: From 1f166d9306b2e30439b1db119ec41c57ef746111 Mon Sep 17 00:00:00 2001 From: Sly Gryphon Date: Mon, 8 Jun 2020 17:26:18 +1000 Subject: [PATCH 2/3] Remove TOC markdown (not working) --- readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 291bf31..a7ac2bb 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,5 @@ -[[_TOC_]] - # Banjo + Banjo is a CLI for executing deployment operations against an Auth0 tenant. It lets you define Auth0 resources as json files (templates) that are read and used to drive [Auth0 Management API](https://auth0.com/docs/api/management/v2) calls to create or update Auth0 resources. Banjo is designed from the ground up to support defining and deploying Auth0 resources for different environments, for example, deploying similar sets of resources to support DEV, TEST, and STAGING environments in one Auth0 tenant and PROD in another tenant. From b5a99777a810f76089a8826280b22dda6d826d97 Mon Sep 17 00:00:00 2001 From: Sly Gryphon Date: Mon, 8 Jun 2020 17:48:11 +1000 Subject: [PATCH 3/3] Coverage not running for external pull request, so split PR and push workflows. --- .github/workflows/build-test-coverage.yml | 51 +++++++++++++++++++++++ .github/workflows/build-test.yml | 14 +------ 2 files changed, 52 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/build-test-coverage.yml diff --git a/.github/workflows/build-test-coverage.yml b/.github/workflows/build-test-coverage.yml new file mode 100644 index 0000000..4d358c4 --- /dev/null +++ b/.github/workflows/build-test-coverage.yml @@ -0,0 +1,51 @@ +name: Build branch + +on: + push: + branches: [ master, feature/* ] + +jobs: + Build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + - name: Install dependencies + run: dotnet tool restore + - name: Build + run: | + $GitVersion = (dotnet tool run dotnet-gitversion /output json /verbosity verbose) | ConvertFrom-Json + dotnet build --configuration Release -p:VersionPrefix=$($GitVersion.NuGetVersion) + shell: pwsh + + Test: + runs-on: windows-latest + + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + - name: Test + run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura + - run: | + dotnet tool install -g dotnet-reportgenerator-globaltool + reportgenerator -reports:**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:Cobertura + name: Create Code coverage report + - uses: 5monkeys/cobertura-action@master + name: 'Publish code coverage' + with: + path: CodeCoverage/Cobertura.xml + repo_token: ${{ secrets.GITHUB_TOKEN }} + minimum_coverage: 50 diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d434d73..4f15784 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,10 +1,8 @@ name: Build branch on: - push: - branches: [ master, feature/* ] pull_request: - branches: [ master, develop ] + branches: [ master ] jobs: Build: @@ -41,13 +39,3 @@ jobs: dotnet-version: 3.1.101 - name: Test run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura - - run: | - dotnet tool install -g dotnet-reportgenerator-globaltool - reportgenerator -reports:**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:Cobertura - name: Create Code coverage report - - uses: 5monkeys/cobertura-action@master - name: 'Publish code coverage' - with: - path: CodeCoverage/Cobertura.xml - repo_token: ${{ secrets.GITHUB_TOKEN }} - minimum_coverage: 50