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

Added matrix-concurrency workflow #12

Merged
merged 5 commits into from
Apr 11, 2022
Merged
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
19 changes: 19 additions & 0 deletions .github/workflows/matrix-concurrency-external.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: MatrixConcurrencyExternal

on:
pull_request:
types: [closed]
branches: [main]
workflow_dispatch:

jobs:
pre-matrix-job:
name: Pre Matrix
concurrency: matrix_concurrency_external_${{ github.event.pull_request.number }}
runs-on: ubuntu-latest
steps:
- name: Do some stuff outside the matrix
run: |
echo "Do some stuff $(date +%T)"
sleep 30
echo "Done some stuff $(date +%T)"
32 changes: 32 additions & 0 deletions .github/workflows/matrix-concurrency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: MatrixConcurrency
concurrency: matrix_concurrency_${{ github.ref_name }}

on:
pull_request:
workflow_dispatch:

jobs:
pre-matrix-job:
name: Pre Matrix
concurrency: matrix_concurrency_external_${{ github.event.pull_request.number }}
runs-on: ubuntu-latest
steps:
- name: Do some stuff in outside the matrix
run: |
echo "Do some stuff $(date +%T)"
sleep 30
echo "Done some stuff $(date +%T)"

matrix-job:
name: Matrix Concurrency
runs-on: ubuntu-latest
strategy:
matrix:
environment: [qa,staging,production,sandbox]
max-parallel: 1
steps:
- name: Do some stuff in ${{ matrix.environment }}
run: |
echo "Do some stuff $(date +%T)"
sleep 30
echo "Done some stuff $(date +%T)"
1 change: 0 additions & 1 deletion .github/workflows/pwsh-switch-parameter.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: PowerShellSwitchParameter

on:
pull_request:
workflow_dispatch:

jobs:
Expand Down