-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated testing into CI-CD. bumped coverage to 94%, something to brag about.
- Loading branch information
Showing
27 changed files
with
361 additions
and
560 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 |
---|---|---|
|
@@ -5,9 +5,28 @@ on: | |
branches: [ "master" ] | ||
|
||
jobs: | ||
test: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
|
||
- name: Load Cache 📦 | ||
uses: actions/cache@v2 | ||
with: | ||
key: ${{ github.ref }} | ||
path: .cache/test | ||
|
||
- name: Test 🧪 | ||
run: dotnet test --verbosity normal | ||
|
||
|
||
build-and-publish-docs: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
needs: test | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -25,7 +44,7 @@ jobs: | |
uses: actions/cache@v2 | ||
with: | ||
key: ${{ github.ref }} | ||
path: .cache | ||
path: .cache/docs | ||
|
||
- name: Install Python mkdocs-material 🐍 | ||
run: pip install mkdocs-material | ||
|
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 |
---|---|---|
|
@@ -5,17 +5,33 @@ on: | |
types: [published] | ||
|
||
jobs: | ||
build-and-publish: | ||
test: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
|
||
- name: Load Cache 📦 | ||
uses: actions/cache@v2 | ||
with: | ||
key: ${{ github.ref }} | ||
path: .cache/test | ||
|
||
- name: Test 🧪 | ||
run: dotnet test --verbosity normal | ||
|
||
|
||
build-and-publish: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
needs: test | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/[email protected] | ||
|
||
- name: Pack 📦 | ||
run: dotnet pack --configuration Release --output . | ||
|
||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@using System.ComponentModel.DataAnnotations | ||
@inherits BaseTest | ||
|
||
@code | ||
{ | ||
[SuppressMessage("ReSharper", "UnusedMember.Local")] | ||
private class Model | ||
{ | ||
[Required] | ||
public string A { get; set; } = default!; | ||
} | ||
|
||
[Test] | ||
public void Test() | ||
{ | ||
var model = new Model(); | ||
|
||
var cut = Render( | ||
@<text> | ||
<BsQuickForm Model="model" /> | ||
</text>); | ||
|
||
cut.MarkupMatches( | ||
@<text> | ||
<form diff:ignoreAttributes > | ||
<div diff:ignoreAttributes> | ||
<label for:ignoreCase:regex="@IdRegex" diff:ignoreAttributes>A</label> | ||
<input id:ignoreCase:regex="@IdRegex" diff:ignoreAttributes> | ||
</div> | ||
|
||
<button type="submit" diff:ignoreAttributes>submit</button> | ||
</form> | ||
</text>); | ||
|
||
Print(cut); | ||
} | ||
} |
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
Oops, something went wrong.