-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 962 Bytes
/
Copy pathci.yml
File metadata and controls
45 lines (37 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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"