File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - " feature/lab3"
7+ workflow_dispatch :
8+
9+ jobs :
10+ basic :
11+ name : Basic CI info + system details
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Print workflow/run context
19+ run : |
20+ echo "Event: ${{ github.event_name }}"
21+ echo "Repository: ${{ github.repository }}"
22+ echo "Actor: ${{ github.actor }}"
23+ echo "Ref: ${{ github.ref }}"
24+ echo "SHA: ${{ github.sha }}"
25+ echo "Run ID: ${{ github.run_id }}"
26+ echo "Run number: ${{ github.run_number }}"
27+ echo "Runner OS: ${{ runner.os }}"
28+ echo "Runner Arch: ${{ runner.arch }}"
29+ echo "Runner Name: ${{ runner.name }}"
30+
31+ - name : System information (OS/CPU/RAM/Disk)
32+ shell : bash
33+ run : |
34+ set -euxo pipefail
35+ echo "=== OS Release ==="
36+ cat /etc/os-release || true
37+
38+ echo "=== Kernel ==="
39+ uname -a
40+
41+ echo "=== CPU ==="
42+ lscpu || true
43+
44+ echo "=== Memory ==="
45+ free -h || true
46+
47+ echo "=== Disk ==="
48+ df -h || true
49+
50+ echo "=== Top processes (optional) ==="
51+ ps aux --sort=-%mem | head -n 10 || true
Original file line number Diff line number Diff line change 1+ # Lab 3 — CI/CD with GitHub Actions
2+
3+ ## Task 1 — First GitHub Actions Workflow
4+
5+ Key concepts observed:
6+ - ** Workflow** : YAML automation stored in ` .github/workflows/ ` .
7+ - ** Trigger (event)** : ` push ` automatically starts a run when commits are pushed.
8+ - ** Job** : A group of steps executed on the same runner VM.
9+ - ** Steps** : Individual commands/actions executed sequentially.
10+ - ** Runner** : The machine executing the job (GitHub-hosted runner via ` runs-on ` ).
11+
12+ ### Evidence
13+ - Successful run:
14+
15+
16+
17+ ## Task 2 — Manual Trigger + System Information
You can’t perform that action at this time.
0 commit comments