From b166bd74e7162b032df30784325f8a0c7bbf0822 Mon Sep 17 00:00:00 2001 From: Sasanka Ranawaka Date: Sun, 23 Nov 2025 14:34:27 +0530 Subject: [PATCH] Create parallel job workflow in GitHub Actions Define a GitHub Actions workflow with multiple jobs running in parallel and sequentially. --- .github/workflows/parrelly.yaml | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/parrelly.yaml diff --git a/.github/workflows/parrelly.yaml b/.github/workflows/parrelly.yaml new file mode 100644 index 0000000..46b1412 --- /dev/null +++ b/.github/workflows/parrelly.yaml @@ -0,0 +1,47 @@ +name: workflow running with parallely + +on: + push: + branches: + - main + pull_request: + branches: + - main + + workflow_dispatch: + + jobs: + job-1: + runs-on: ubuntu-latest + steps: + - run: echo "This is a first job" + - run: echo "Have one or more steps" + - run: echo "Which running sequentially" + + job-2: + runs-on: ubuntu-latest + steps: + - run: echo "This is a second job" + job-3: + runs-on: ubuntu-latest + needs: + - job-1: + - job-2: + steps: + - run: echo "This is 3rd job" + + job-4: + runs-on: ubuntu-latest + needs: + - job-2: + - job-3: + steps: + - run " This is 4th job" + + + + + + + +