Skip to content

Tests/add file tree tests (#7) #16

Tests/add file tree tests (#7)

Tests/add file tree tests (#7) #16

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libncurses5-dev libncursesw5-dev
- name: Build application
run: |
make clean
make
- name: Build and run unit tests
run: |
cd tests
make clean
make test
- name: Check build artifacts
run: |
ls -la build/
file build/cisco-cli-interface
# Future: Add deployment job when ready
# deploy:
# needs: build-and-test
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
# steps:
# - name: Deploy
# run: echo "Deployment step will be added here"