Skip to content

Commit

Permalink
test(snap): add snap CI workflow (#73)
Browse files Browse the repository at this point in the history
* test: add snap CI workflow 

Signed-off-by: Mengyi Wang <mengyi.wang@canonical.com>
  • Loading branch information
MonicaisHer authored Apr 20, 2022
1 parent e0db465 commit 8b44d22
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Snap Testing

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# allow manual trigger
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build and upload snap
id: build
uses: canonical/edgex-snap-testing/build@v2
outputs:
snap: ${{steps.build.outputs.snap}}

test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download and test snap
uses: canonical/edgex-snap-testing/test@v2
with:
name: device-rfid-llrp
snap: ${{needs.build.outputs.snap}}

2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

edgeXBuildGoApp (
project: 'device-rfid-llrp-go',
buildSnap: true
buildSnap: false
)

0 comments on commit 8b44d22

Please sign in to comment.