Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-ci-Test4 #3

Open
wants to merge 18 commits into
base: chrispat-patch-1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/dotnetcore-2.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: .NET Core CI 2

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
repository_dispatch:
types: [matrix-ci]

jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.image }}
strategy:
matrix:
image: ${{ github.event.client_payload.images }}

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: .NET Core. CI 1

foo: test

on:
push:
branches: [ master ]
Expand All @@ -8,7 +10,6 @@ on:

jobs:
build:

runs-on: ${{ matrix.image }}
strategy:
matrix:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
release:
types:
- published
- prereleased
- released
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Runs a single command using the runners shell
- name: Release even type ${{ github.event.action }}
run: echo $payload
env:
payload: ${{ toJson(github.event) }}
27 changes: 27 additions & 0 deletions .github/workflows/trigger-event.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This is a basic workflow to help you get started with Actions

name: repo-dispatch

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
trigger:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: 'matrix-ci'
client-payload: '{"images": [ "ubuntu-latest", "windows-latest" ] }'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

New content for the readme
More edits
adsfasdfadsf
17 changes: 15 additions & 2 deletions azure-pipelines-1.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# ASP.NET Core

# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
Expand All @@ -13,5 +14,17 @@ variables:
buildConfiguration: 'Release'

steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- task: AzurePowerShell@5
inputs:
azureSubscription: 'azure-pipeline-pm(5e811388-da36-4a22-b49b-e3477f384ec3)'
ScriptType: 'InlineScript'
Inline: |
gci env:\
azurePowerShellVersion: 'LatestVersion'
- task: AzureCLI@2
inputs:
azureSubscription: 'azure-pipeline-pm(5e811388-da36-4a22-b49b-e3477f384ec3)'
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: 'env'