Refactor GitVersion.yml for consistent branch configuration and imp…
#35
Workflow file for this run
This file contains hidden or 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
| name: integration | |
| on: | |
| push: | |
| branches: | |
| - 'feature/**' | |
| jobs: | |
| ubuntu-latest: | |
| name: ubuntu-latest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: 'Cache: ~/.nuget/packages' | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.nuget/packages | |
| key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} | |
| - name: 'Build with target: NuGetPush' | |
| run: ./build.cmd -t nugetpush -t publish -t createdistpackages | |
| env: | |
| NUGET_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 'Publish: coverage_report' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report-linux | |
| path: .tests/coverage-report | |
| - name: 'Publish: cli dist package' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: SmartMeter.Cli | |
| path: .artifacts/dist/SmartMeter.Cli.tar.gz | |
| macos-latest: | |
| name: macos-latest | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: 'Cache: ~/.nuget/packages' | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.nuget/packages | |
| key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} | |
| - name: 'Build with target: Pack' | |
| run: ./build.cmd -t pack | |
| - name: 'Publish: coverage_report' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report-macos | |
| path: .tests/coverage-report |