|
1 | 1 | name: Master workflow |
2 | | -on: |
| 2 | +on: |
3 | 3 | push: |
4 | 4 | branches: |
5 | 5 | - master |
6 | | - - 'release/**' |
7 | | - - 'releases/**' |
| 6 | + - "release/**" |
| 7 | + - "releases/**" |
8 | 8 | tags: |
9 | 9 | - v* |
10 | 10 | - V* |
11 | 11 | env: |
12 | | - DOTNET_CLI_TELEMETRY_OPTOUT: true |
| 12 | + DOTNET_CLI_TELEMETRY_OPTOUT: true |
13 | 13 | MSBUILDSINGLELOADCONTEXT: 1 |
14 | 14 | jobs: |
15 | 15 | build: |
16 | 16 | name: Build |
17 | 17 | runs-on: ubuntu-latest |
18 | 18 | steps: |
19 | | - - name: Checkout |
20 | | - uses: actions/checkout@v2 |
21 | | - - name: Build solution |
22 | | - run: dotnet build -c Release |
23 | | - - name: Create NuGet packages |
24 | | - run: dotnet pack -c Release --no-build -o nupkg |
25 | | - - name: Upload nuget packages |
26 | | - uses: actions/upload-artifact@v1 |
27 | | - with: |
28 | | - name: nupkg |
29 | | - path: nupkg |
| 19 | + - name: Checkout |
| 20 | + uses: actions/checkout@v2 |
| 21 | + with: |
| 22 | + fetch-depth: 0 |
| 23 | + - name: Build solution |
| 24 | + run: dotnet build -c Release |
| 25 | + - name: Create NuGet packages |
| 26 | + run: dotnet pack -c Release --no-build -o nupkg |
| 27 | + - name: Upload nuget packages |
| 28 | + uses: actions/upload-artifact@v1 |
| 29 | + with: |
| 30 | + name: nupkg |
| 31 | + path: nupkg |
30 | 32 |
|
31 | 33 | test: |
32 | 34 | name: Test |
33 | 35 | needs: [build] |
34 | 36 | runs-on: ubuntu-latest |
35 | 37 | steps: |
36 | | - - name: Checkout |
37 | | - uses: actions/checkout@v2 |
38 | | - - name: Download version info file |
39 | | - uses: actions/download-artifact@v1 |
40 | | - with: |
41 | | - name: gitversion |
42 | | - path: ./ |
43 | | - - name: Inject version info into environment |
44 | | - run: cat ./gitversion.env >> $GITHUB_ENV |
45 | | - - name: Run tests |
46 | | - run: echo "Current version is \"$GitVersion_SemVer\"" && dotnet test -c Release |
| 38 | + - name: Checkout |
| 39 | + uses: actions/checkout@v2 |
| 40 | + - name: Download version info file |
| 41 | + uses: actions/download-artifact@v1 |
| 42 | + with: |
| 43 | + name: gitversion |
| 44 | + path: ./ |
| 45 | + - name: Inject version info into environment |
| 46 | + run: cat ./gitversion.env >> $GITHUB_ENV |
| 47 | + - name: Run tests |
| 48 | + run: echo "Current version is \"$GitVersion_SemVer\"" && dotnet test -c Release |
0 commit comments