Skip to content

Working advanced anastasia#309

Open
Thanus31 wants to merge 14 commits into
nisalgunawardhana:mainfrom
Thanus31:working-advanced-anastasia
Open

Working advanced anastasia#309
Thanus31 wants to merge 14 commits into
nisalgunawardhana:mainfrom
Thanus31:working-advanced-anastasia

Conversation

@Thanus31
Copy link
Copy Markdown

@Thanus31 Thanus31 commented May 8, 2026

Description

This pull request includes the completion of Advanced GitHub Actions learning tasks and workflow improvements.

Changes Made

  • Added artifact upload and download functionality
  • Implemented job dependency using needs
  • Added conditional workflow execution for main branch deployments
  • Created and tested multiple GitHub Actions workflows
  • Updated workflow configuration files
  • Added custom workflow automation features
  • Updated sample app documentation

Fixes # (issue)


Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📚 Documentation update
  • 🔧 Configuration change
  • ♻️ Code refactor (no functional changes)
  • 🚀 Performance improvement
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)

How Has This Been Tested?

The workflows were tested using GitHub Actions and verified through workflow logs and successful job execution.

  • Added/updated unit tests
  • Added/updated integration tests
  • Tested manually on local machine
  • Tested in staging environment

Test Configuration

  • Node.js version: 22.x
  • OS: Windows

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing workflows passed successfully

Screenshots or Workflow Logs

Verified workflow runs successfully in the GitHub Actions tab.


Additional Context

This pull request was created as part of GitHub Actions Advanced Tasks practice and learning activities.

Copilot AI review requested due to automatic review settings May 8, 2026 10:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s GitHub Actions workflows as part of the “advanced” learning tasks (adding artifacts, job dependencies, and conditional execution) and includes small documentation updates.

Changes:

  • Added new workflows (custom.yml, conditional.yml) to demonstrate matrix builds, env vars, secrets, and conditional steps.
  • Updated the existing build/test workflow to upload/download an artifact and introduce a needs dependency between jobs.
  • Minor README additions in the root and sample app docs; added a comment line in the hello-world workflow.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
sample-app/README.md Adds brief documentation lines near the end of the sample app README.
README.md Appends a short learning-related line near the end of the root README.
.github/workflows/hello-world.yml Adds an extra comment line near the top of the workflow.
.github/workflows/custom.yml Introduces a new workflow demonstrating env vars, secrets, and a Node.js matrix.
.github/workflows/conditional.yml Introduces a new workflow demonstrating a main-branch-only deploy step.
.github/workflows/build-test.yml Reworks the build/test workflow to add artifact upload/download and a dependent job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,5 +1,7 @@
name: Hello World Workflow

#Thanus31
branches:
- develop
- main
- working-advanced-anastasia
branches:
- develop
- main
- working-advanced-anastasia
Comment on lines +22 to 33
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'sample-app/package-lock.json'

- name: Install dependencies
working-directory: ./sample-app
run: npm ci

- name: Run linter
working-directory: ./sample-app
run: npm run lint
continue-on-error: true

- name: Build application

- name: Install Dependencies
working-directory: ./sample-app
run: npm run build
- name: Run tests
run: npm install

- name: Run Tests
working-directory: ./sample-app
run: npm test
Comment on lines 10 to +13
jobs:
build-and-test:
name: Build and Test
build:
runs-on: ubuntu-latest


strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
Comment on lines +29 to +31
- name: Access Secret
env:
TEST_SECRET: ${{ secrets.TEST_SECRET }}
Comment on lines +35 to +46
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
working-directory: ./sample-app
run: npm install

- name: Run Tests
working-directory: ./sample-app
run: npm test No newline at end of file
branches:
- develop
- main
- working-advanced-anastasia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants