From 91750fad1af69732c3cd01dbc9e8133ef5731a2b Mon Sep 17 00:00:00 2001 From: Mirletti Date: Mon, 2 Feb 2026 01:47:38 +0300 Subject: [PATCH 1/5] template --- .github/pull_request_template.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..fa59383c --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,14 @@ +# Goal + +# Changes +- + +# Testing +- [ ] Unit tests passed +- [ ] Manual testing done +- [ ] No tests (explain why): + +# Checklist +- [ ] PR title is clear and descriptive +- [ ] Code is formatted/linted (if applicable) +- [ ] Documentation updated (if applicable) From 4ca9ec3882f7e8b5b52da6d9d20d44cf3a382460 Mon Sep 17 00:00:00 2001 From: Mirletti Date: Thu, 12 Feb 2026 16:52:10 +0300 Subject: [PATCH 2/5] docs: add lab3 submission --- .github/pull_request_template.md | 14 -------------- .github/workflows/main.yaml | 0 2 files changed, 14 deletions(-) delete mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/main.yaml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index fa59383c..00000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,14 +0,0 @@ -# Goal - -# Changes -- - -# Testing -- [ ] Unit tests passed -- [ ] Manual testing done -- [ ] No tests (explain why): - -# Checklist -- [ ] PR title is clear and descriptive -- [ ] Code is formatted/linted (if applicable) -- [ ] Documentation updated (if applicable) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 00000000..e69de29b From f8888fd777e3363a216cd88890a8baf4aa80afd1 Mon Sep 17 00:00:00 2001 From: Mirletti Date: Thu, 12 Feb 2026 16:57:25 +0300 Subject: [PATCH 3/5] docs: add lab3 submission --- labs/submission3.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 labs/submission3.md diff --git a/labs/submission3.md b/labs/submission3.md new file mode 100644 index 00000000..e69de29b From d64e23744d133545ee05abd08336c3ad1a03eee7 Mon Sep 17 00:00:00 2001 From: Mirletti Date: Thu, 12 Feb 2026 17:12:38 +0300 Subject: [PATCH 4/5] docs: add lab3 submission --- .github/workflows/main.yaml | 51 +++++++++++++++++++++++++++++++++++++ labs/submission3.md | 17 +++++++++++++ 2 files changed, 68 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e69de29b..3d955919 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -0,0 +1,51 @@ +name: CI + +on: + push: + branches: + - "feature/lab3" + workflow_dispatch: + +jobs: + basic: + name: Basic CI info + system details + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Print workflow/run context + run: | + echo "Event: ${{ github.event_name }}" + echo "Repository: ${{ github.repository }}" + echo "Actor: ${{ github.actor }}" + echo "Ref: ${{ github.ref }}" + echo "SHA: ${{ github.sha }}" + echo "Run ID: ${{ github.run_id }}" + echo "Run number: ${{ github.run_number }}" + echo "Runner OS: ${{ runner.os }}" + echo "Runner Arch: ${{ runner.arch }}" + echo "Runner Name: ${{ runner.name }}" + + - name: System information (OS/CPU/RAM/Disk) + shell: bash + run: | + set -euxo pipefail + echo "=== OS Release ===" + cat /etc/os-release || true + + echo "=== Kernel ===" + uname -a + + echo "=== CPU ===" + lscpu || true + + echo "=== Memory ===" + free -h || true + + echo "=== Disk ===" + df -h || true + + echo "=== Top processes (optional) ===" + ps aux --sort=-%mem | head -n 10 || true \ No newline at end of file diff --git a/labs/submission3.md b/labs/submission3.md index e69de29b..deaf92ad 100644 --- a/labs/submission3.md +++ b/labs/submission3.md @@ -0,0 +1,17 @@ +# Lab 3 — CI/CD with GitHub Actions + +## Task 1 — First GitHub Actions Workflow + +Key concepts observed: +- **Workflow**: YAML automation stored in `.github/workflows/`. +- **Trigger (event)**: `push` automatically starts a run when commits are pushed. +- **Job**: A group of steps executed on the same runner VM. +- **Steps**: Individual commands/actions executed sequentially. +- **Runner**: The machine executing the job (GitHub-hosted runner via `runs-on`). + +### Evidence +- Successful run: + + + +## Task 2 — Manual Trigger + System Information \ No newline at end of file From 8562d2e28d4efd9cb553f944d3f2daab05b69ae4 Mon Sep 17 00:00:00 2001 From: Mirletti Date: Thu, 12 Feb 2026 20:51:56 +0300 Subject: [PATCH 5/5] Update --- labs/submission3.md | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/labs/submission3.md b/labs/submission3.md index deaf92ad..e84d8dfc 100644 --- a/labs/submission3.md +++ b/labs/submission3.md @@ -9,9 +9,35 @@ Key concepts observed: - **Steps**: Individual commands/actions executed sequentially. - **Runner**: The machine executing the job (GitHub-hosted runner via `runs-on`). -### Evidence -- Successful run: -## Task 2 — Manual Trigger + System Information \ No newline at end of file +## Task 2 — Manual Trigger + System Information + + +### `.github/workflows/lab3-ci.yml`: + +- Initial setup +- Manual trigger +- System information collection + +### Gathered System Information from Runner + +- Operating System: Ubuntu (ubuntu-latest GitHub-hosted runner) +- Kernel Version: Linux kernel version displayed via `uname -a` +- CPU Architecture: x86_64 +- Memory: RAM size and usage displayed via free `-h` +- Disk Space: Available and used storage displayed via `df -h` + +### Comparison of Manual vs Automatic Workflow Triggers + +**Automatic Trigger**: +- Activated automatically when code is pushed to the repository. +- Event type shown in logs as: `push`. +- Used for continuous integration to validate changes immediately after commit. +- Ensures automated testing and validation without manual intervention. + + +**Manual Trigger (`workflow_dispatch`)**: +- Triggered manually via GitHub UI +- Event type shown in logs as: `workflow_dispatch`.