66 - ' docs/**'
77
88env :
9- VERSION : 1337.0.0
9+ VERSION : ' '
1010 BRANCH : ' '
1111
1212jobs :
1717 - name : Getting branch name
1818 run : echo "::set-env name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
1919 - 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+ - run : echo "NBGV_SemVer2 $NBGV_SemVer2"
2026 - name : Update tokens in project files
2127 uses : cschleiden/replace-tokens@v1
2228 with :
2733 - name : Building library
2834 run : |
2935 dotnet restore src
30- dotnet build src/bunit.core/ -c Release --no-restore -p:version=$VERSION -p: RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
31- dotnet build src/bunit.web/ -c Release --no-restore -p:version=$VERSION -p: RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
32- dotnet build src/bunit.xunit/ -c Release --no-restore -p:version=$VERSION -p: RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
36+ dotnet build src/bunit.core/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
37+ dotnet build src/bunit.web/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
38+ dotnet build src/bunit.xunit/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
3339 dotnet build src/bunit.testassets/ -c Release --no-restore
3440 - name : Running unit tests
3541 run : |
@@ -38,12 +44,12 @@ jobs:
3844 dotnet test src/bunit.xunit.tests/ -c Release --no-restore --verbosity normal /nowarn:CS1591
3945 - name : Creating library package
4046 run : |
41- dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:version=$VERSION -p: RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
47+ dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
4248 dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:version=$VERSION -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
4349 dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:version=$VERSION -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
4450 dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:version=$VERSION -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
4551 - name : Buidling template package
46- run : dotnet pack templates /bunit-project / -c Release -o ${GITHUB_WORKSPACE}/templates -p:version=$VERSION
52+ run : dotnet pack src /bunit.template / -c Release -o ${GITHUB_WORKSPACE}/templates -p:version=$VERSION
4753 - name : Verifying template
4854 run : |
4955 dotnet new --install ${GITHUB_WORKSPACE}/templates/bunit.template.$VERSION.nupkg
0 commit comments