-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters