|
1 | | -name: Push nightly to GPR |
| 1 | +name: "Push nightly to GPR" |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
14 | 14 | VERSION: '' |
15 | 15 | BRANCH: '' |
16 | 16 |
|
17 | | -jobs: |
| 17 | +jobs: |
18 | 18 | push-to-gpr: |
19 | 19 | runs-on: ubuntu-latest |
20 | 20 | steps: |
@@ -57,64 +57,18 @@ jobs: |
57 | 57 | } |
58 | 58 |
|
59 | 59 | - name: Building library |
60 | | - run: dotnet build src -c Release -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true |
| 60 | + run: dotnet build src -c Release -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true |
61 | 61 |
|
62 | 62 | - name: Running unit tests |
63 | | - run: dotnet test src --verbosity normal /nowarn:CS1591 /p:CollectCoverage=true /p:CoverletOutput=./coverage/ /p:CoverletOutputFormat=lcov |
64 | | - |
65 | | - - name: Creating library package |
66 | | - run: | |
67 | | - dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true |
68 | | - dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true |
69 | | - dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true |
70 | | - dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true |
| 63 | + run: dotnet test src -c Release /nowarn:CS1591 |
71 | 64 |
|
72 | | - - name: Buidling template package |
73 | | - run: dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages |
74 | | - - name: Verifying template |
| 65 | + - name: Creating library package |
75 | 66 | run: | |
76 | | - dotnet new --install ${GITHUB_WORKSPACE}/packages/bunit.template.$VERSION.nupkg |
77 | | - dotnet new bunit --no-restore -o ${GITHUB_WORKSPACE}/Test |
78 | | - dotnet restore ${GITHUB_WORKSPACE}/Test/Test.csproj --source ${GITHUB_WORKSPACE}/packages |
79 | | - dotnet test ${GITHUB_WORKSPACE}/Test |
80 | | -
|
81 | | - - uses: coverallsapp/github-action@v1.1.1 |
82 | | - with: |
83 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
84 | | - path-to-lcov: src/bunit.core.tests/coverage/coverage.net5.0.info |
85 | | - parallel: true |
86 | | - - uses: coverallsapp/github-action@v1.1.1 |
87 | | - with: |
88 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
89 | | - path-to-lcov: src/bunit.core.tests/coverage/coverage.netcoreapp3.1.info |
90 | | - parallel: true |
91 | | - |
92 | | - - uses: coverallsapp/github-action@v1.1.1 |
93 | | - with: |
94 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
95 | | - path-to-lcov: src/bunit.web.tests/coverage/coverage.net5.0.info |
96 | | - parallel: true |
97 | | - - uses: coverallsapp/github-action@v1.1.1 |
98 | | - with: |
99 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
100 | | - path-to-lcov: src/bunit.web.tests/coverage/coverage.netcoreapp3.1.info |
101 | | - parallel: true |
102 | | - |
103 | | - - uses: coverallsapp/github-action@v1.1.1 |
104 | | - with: |
105 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
106 | | - path-to-lcov: src/bunit.xunit.tests/coverage/coverage.net5.0.info |
107 | | - parallel: true |
108 | | - - uses: coverallsapp/github-action@v1.1.1 |
109 | | - with: |
110 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
111 | | - path-to-lcov: src/bunit.xunit.tests/coverage/coverage.netcoreapp3.1.info |
112 | | - parallel: true |
113 | | - |
114 | | - - uses: coverallsapp/github-action@v1.1.1 |
115 | | - with: |
116 | | - github-token: ${{ secrets.github_token }} |
117 | | - parallel-finished: true |
| 67 | + dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true |
| 68 | + dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true |
| 69 | + dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true |
| 70 | + dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true |
| 71 | + dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages /p:PublicRelease=true |
118 | 72 |
|
119 | 73 | - name: Push packages to GitHub Package Registry |
120 | 74 | run: | |
|
0 commit comments