From 6702767c13dad0f5ddaf90effbee5639f54f3f23 Mon Sep 17 00:00:00 2001 From: Musa Ejaz Date: Tue, 30 Sep 2025 16:23:00 +0100 Subject: [PATCH 1/2] Adding CI Pipeline --- .github/workflows/new-ci.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/new-ci.yml diff --git a/.github/workflows/new-ci.yml b/.github/workflows/new-ci.yml new file mode 100644 index 00000000..efa58c11 --- /dev/null +++ b/.github/workflows/new-ci.yml @@ -0,0 +1,38 @@ +name: My FIRST CI PIPELINE +run-name: "${{ github.event.head_commit.message }} (${{ github.sha }})" + +on: + pull_request: + push: + branches: + - olt + + +jobs: + build: + name: Build Frontend Artifact + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Node 16 + uses: actions/setup-node@v3 + with: + node-version: 16.x + + - name: Cache Node Modules + uses: actions/cache@v3 + with: + path: frontend/node_modules + key: fe-node-${{ hashFiles('frontend/package-lock.json') }} + + - name: Install dependencies + run: cd frontend && npm i + + - name: Compile code and build + run: cd frontend && npm build + + - name: Upload Artifact + uses: actions/upload-pages-artifact@v1 + with: + path: frontend/build \ No newline at end of file From ae7f556e56cbac8ea1fe85d23014926179d4ed28 Mon Sep 17 00:00:00 2001 From: Musa Ejaz Date: Tue, 30 Sep 2025 16:25:43 +0100 Subject: [PATCH 2/2] asda --- .github/workflows/new-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/new-ci.yml b/.github/workflows/new-ci.yml index efa58c11..ca146582 100644 --- a/.github/workflows/new-ci.yml +++ b/.github/workflows/new-ci.yml @@ -7,7 +7,8 @@ on: branches: - olt - +permissions: + write-all jobs: build: name: Build Frontend Artifact