Skip to content

Commit

Permalink
test: add snap CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Mengyi Wang <mengyi.wang@canonical.com>
  • Loading branch information
MonicaisHer committed Apr 19, 2022
1 parent e0db465 commit 19c372e
Showing 1 changed file with 30 additions and 0 deletions.
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}}

0 comments on commit 19c372e

Please sign in to comment.