Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

test(snap): add CI workflow #439

Merged
merged 3 commits into from
Apr 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: cli
snap: ${{needs.build.outputs.snap}}
print_logs: false