Skip to content

Commit 6c66cc2

Browse files
authored
Merge pull request #130 from egil/dev
beta-7
2 parents 3548480 + 8c43990 commit 6c66cc2

File tree

454 files changed

+16101
-12850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

454 files changed

+16101
-12850
lines changed

.editorconfig

Lines changed: 0 additions & 226 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/workflows/CI-CD-Docs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '.github/**'
1010

1111
env:
12-
VERSION: '1.0.0-beta-6'
12+
VERSION: '1.0.0-beta-7'
1313
BRANCH: 'master'
1414
COMMIT: ''
1515
DOCFX_SOURCE_BRANCH_NAME: 'master'
@@ -27,11 +27,14 @@ jobs:
2727
files: '["docs/*.md", "docs/**/*.md", "*.csproj", "**/*.csproj"]'
2828
- uses: actions/setup-dotnet@v1
2929
with:
30-
dotnet-version: '3.1.101'
30+
dotnet-version: '3.1.202'
3131
- name: Building library and docs
3232
run: |
33-
dotnet build src/bunit.csproj
34-
dotnet build docs/docs.csproj
33+
dotnet restore
34+
dotnet build src/bunit.core --no-restore -p:version=$VERSION
35+
dotnet build src/bunit.web --no-restore -p:version=$VERSION
36+
dotnet build src/bunit.xunit --no-restore -p:version=$VERSION
37+
dotnet build docs/docs.csproj --no-restore
3538
- name: Deploy
3639
uses: JamesIves/github-pages-deploy-action@releases/v3
3740
with:

.github/workflows/CI-PR.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: CI-PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
paths-ignore:
8+
- 'docs/**'
9+
10+
env:
11+
VERSION: ''
12+
BRANCH: ''
13+
14+
jobs:
15+
build:
16+
name: Build and verify library
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
22+
- uses: dotnet/nbgv@master
23+
with:
24+
setAllVars: true
25+
- name: Setting VERSION and BRANCH env
26+
run: |
27+
echo "::set-env name=VERSION::$NBGV_NuGetPackageVersion"
28+
echo "::set-env name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
29+
- name: Update tokens in project files
30+
uses: cschleiden/replace-tokens@v1
31+
with:
32+
files: '["*.csproj", "**/*.csproj"]'
33+
- uses: actions/setup-dotnet@v1
34+
with:
35+
dotnet-version: '3.1.202'
36+
- name: Building library
37+
run: |
38+
dotnet restore src
39+
dotnet build src/bunit.core/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
40+
dotnet build src/bunit.web/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
41+
dotnet build src/bunit.xunit/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
42+
dotnet build src/bunit.testassets/ -c Release --no-restore
43+
- name: Running unit tests
44+
run: |
45+
dotnet test src/bunit.core.tests/ -c Release --no-restore --verbosity normal /nowarn:CS1591
46+
dotnet test src/bunit.web.tests/ -c Release --no-restore --verbosity normal /nowarn:CS1591
47+
dotnet test src/bunit.xunit.tests/ -c Release --no-restore --verbosity normal /nowarn:CS1591
48+
- name: Creating library package
49+
run: |
50+
dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
51+
dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
52+
dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
53+
dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
54+
- name: Buidling template package
55+
run: dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages
56+
- name: Verifying template
57+
run: |
58+
dotnet new --install ${GITHUB_WORKSPACE}/packages/bunit.template.$VERSION.nupkg
59+
dotnet new bunit --no-restore -o ${GITHUB_WORKSPACE}/Test
60+
dotnet restore ${GITHUB_WORKSPACE}/Test/Test.csproj --source ${GITHUB_WORKSPACE}/packages
61+
dotnet test ${GITHUB_WORKSPACE}/Test

0 commit comments

Comments
 (0)