Add support for Environment tag in Github Actions #1389
Merged
Annotations
4 errors and 4 warnings
[xUnit.net 00:00:00.58] 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]
|
VerifyException : Directory: /Users/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
|
|
|
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/.
|
|
/Users/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>' [/Users/runner/work/nuke/nuke/source/Nuke.SourceGenerators/Nuke.SourceGenerators.csproj]
|
/Users/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>' [/Users/runner/work/nuke/nuke/source/Nuke.SourceGenerators/Nuke.SourceGenerators.csproj]
|
This job failed
Loading