Skip to content

Add support for Environment tag in Github Actions #443

Add support for Environment tag in Github Actions

Add support for Environment tag in Github Actions #443

Triggered via pull request July 3, 2024 16:44
Status Failure
Total duration 3m 27s
Artifacts

ubuntu-latest.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 3 warnings
ubuntu-latest
[xUnit.net 00:00:01.18] Nuke.Common.Tests.CI.ConfigurationGenerationTest.Test(testName: "detailed-triggers", attribute: TestGitHubActionsAttribute { AutoGenerate = True, Build = null, CacheExcludePatterns = [], CacheIncludePatterns = [".nuke/temp", "~/.nuget/packages"], CacheKeyFiles = ["**/global.json", "**/*.csproj", "**/Directory.Packages.props"], ··· }) [FAIL]
Nuke.Common.Tests.CI.ConfigurationGenerationTest.Test
VerifyException : Directory: /home/runner/work/nuke/nuke/source/Nuke.Common.Tests/CI NotEqual: - Received: ConfigurationGenerationTest.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.received.txt Verified: ConfigurationGenerationTest.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.verified.txt FileContent: NotEqual: Received: ConfigurationGenerationTest.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.received.txt Verified: ConfigurationGenerationTest.Test_testName=detailed-triggers_attribute=GitHubActionsAttribute.verified.txt Compare Result: # ------------------------------------------------------------------------------ # <auto-generated> # # This code was generated. # # - To turn off auto-generation set: # # [TestGitHubActions (AutoGenerate = false)] # # - To trigger manual generation invoke: # # nuke --generate-configuration GitHubActions_test --host GitHubActions # # </auto-generated> # ------------------------------------------------------------------------------ name: test on: push: branches: - push_branch tags: - 'push_tag/*' paths: - push_include_path - '!push_exclude_path' pull_request: branches: - pull_request_branch tags: - pull_request_tag paths: - pull_request_include_path - '!pull_request_exclude_path/**' workflow_dispatch: inputs: OptionalInput: description: "Optional Input" required: false RequiredInput: description: "Required Input" required: true schedule: - cron: '* 0 * * *' concurrency: group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }} cancel-in-progress: true jobs: macos-latest: name: macos-latest runs-on: macos-latest timeout-minutes: 30 concurrency: group: custom-job-group cancel-in-progress: true + environment: + name: environment-name + url: environment-url steps: - uses: actions/checkout@v4 with: submodules: recursive lfs: true fetch-depth: 2 progress: false filter: tree:0 - name: 'Cache: .nuke/temp, ~/.nuget/packages' uses: actions/cache@v4 with: path: | .nuke/temp ~/.nuget/packages key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} - name: 'Run: Test' run: ./build.cmd Test env: OptionalInput: ${{ github.event.inputs.OptionalInput }} RequiredInput: ${{ github.event.inputs.RequiredInput }} - name: 'Publish: src' uses: actions/upload-artifact@v4 if: success() || failure() with: name: src path: src - name: 'Publish: test-results' uses: actions/upload-artifact@v4 if: success() || failure() with: name: test-results path: output/test-results - name: 'Publish: coverage-report.zip' uses: actions/upload-artifact@v4 if: success() || failure() with: name: coverage-report.zip path: output/coverage-report.zip ubuntu-latest: name: ubuntu-latest runs-on: ubuntu-latest timeout-minutes: 30 concurrency: group: custom-job-group cancel-in-progress: true + environment: + name: environment-name + url: environment-url steps: - uses: actions/checkout@v4 with: submodules: recursive lfs: true fetch-depth: 2 progress: false filter: tree:0 - name: 'Cache: .nuke/temp, ~/.nuget/packages' uses: actions/cache@v4 with: path: | .nuke/temp
ubuntu-latest
Target "Test" has thrown an exception
ubuntu-latest
Process completed with exit code 255.
ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
ubuntu-latest
/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/StronglyTypedSolutionGenerator.cs(23,14): warning RS1036: 'Nuke.SourceGenerators.StronglyTypedSolutionGenerator': A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>' [/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/Nuke.SourceGenerators.csproj]
ubuntu-latest
/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/StronglyTypedSolutionGenerator.cs(23,14): warning RS1036: 'Nuke.SourceGenerators.StronglyTypedSolutionGenerator': A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>' [/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/Nuke.SourceGenerators.csproj]