Skip to content
Open
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI Pipeline

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
build:
runs-on: Linux

steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Display runner information
run: |
echo "Running on GitHub-hosted runner"
hostname
hostname -I
uname -a
pwd
ls -la
cat /etc/os-release
sudo whoami
sudo systemctl stop apache2
sudo apt remove apache2
sudo apt update
sudo apt install apache2 -y
sudo sed -i 's/Listen 80/Listen 81/g' /etc/apache2/ports.conf
sudo systemctl start apache2
sudo apt install curl
curl http://127.0.0.1:81/
echo "THE END"