diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..a7578b2 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,25 @@ +name: .NET + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 4.7.2 + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/.octopus/Grades/deployment_process.ocl b/.octopus/Grades/deployment_process.ocl index a740349..ce3c629 100644 --- a/.octopus/Grades/deployment_process.ocl +++ b/.octopus/Grades/deployment_process.ocl @@ -1,4 +1,5 @@ -step "Run a Script" { +step "run-a-script" { + name = "Run a Script" action { action_type = "Octopus.Script" @@ -7,6 +8,26 @@ step "Run a Script" { Octopus.Action.Script.ScriptSource = "Inline" Octopus.Action.Script.Syntax = "PowerShell" } - worker_pool = "Hosted Windows" + worker_pool = "hosted-windows" + } +} + +step "get-details" { + name = "Get-Details" + + action { + properties = { + Octopus.Action.RunOnServer = "true" + Octopus.Action.Template.Id = "ActionTemplates-3061" + Octopus.Action.Template.Version = "1" + } + worker_pool_variable = "" + + git_dependencies { + default_branch = "master" + git_credential_id = "GitCredentials-2" + git_credential_type = "Library" + repository_uri = "https://github.com/calverp/Grades.git" + } } } \ No newline at end of file diff --git a/.octopus/Grades/schema_version.ocl b/.octopus/Grades/schema_version.ocl index dcc0792..d55ce03 100644 --- a/.octopus/Grades/schema_version.ocl +++ b/.octopus/Grades/schema_version.ocl @@ -1 +1 @@ -version = 3 \ No newline at end of file +version = 9 \ No newline at end of file diff --git a/.octopus/Grades/variables.ocl b/.octopus/Grades/variables.ocl new file mode 100644 index 0000000..2fa0903 --- /dev/null +++ b/.octopus/Grades/variables.ocl @@ -0,0 +1,3 @@ +variable "test" { + value "new2" {} +} \ No newline at end of file