Skip to content

Commit

Permalink
Test acton-yang project
Browse files Browse the repository at this point in the history
Add a GitHub CI reusable workflow to test Acton projects by just
providing a git repo URL. The first project we test is the acton-yang
repo, the YANG module & compiler.
  • Loading branch information
plajjan committed Oct 11, 2024
1 parent 6b7f220 commit c0c0385
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

on:
workflow_call:
inputs:
repo_url:
required: true
type: string
jobs:
test-app:
# needs: build-debs
runs-on: ubuntu-latest
container:
image: debian:experimental
steps:
# - name: "Download .deb files"
# uses: actions/download-artifact@v3
# with:
# name: acton-debs
# - name: "Install acton from .deb"
# run: |
# apt update
# apt install -y ./deb/acton_*.deb
# acton --version
- name: "Clone app repo"
uses: actions/checkout@v4
with:
repository: ${{ inputs.repo_url }}
path: app
- name: "Compile acton program"
run: |
cd app
ls
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ jobs:
make start
make test
test-app-yang:
uses: "./.github/workflows/test-app.yml"
with:
repo_url: "orchestron-orchestrator/acton-yang"

# If we are on the main branch, we'll create or update a pre-release called
# 'tip' which holds the latest build output from the main branch! We upload
Expand Down

0 comments on commit c0c0385

Please sign in to comment.