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

Snap Testing

Snap Testing #546

Workflow file for this run

# This workflow performs local snap testing on listed snaps
name: Snap Testing
on:
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
schedule:
# weekly tests run 6AM every Sunday
#- cron: "0 3 * * SUN"
# Make it nighly for the beta testing phase
- cron: "0 3 * * *"
# allow manual trigger
workflow_dispatch:
inputs:
localBuild:
description: Build snaps locally
required: false
default: false
type: boolean
jobs:
build_and_test:
name: Build & Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: device-mqtt
repo: edgexfoundry/device-mqtt-go
- name: ekuiper
repo: canonical/edgex-ekuiper-snap
- name: app-service-configurable
repo: edgexfoundry/app-service-configurable
- name: device-gpio
repo: edgexfoundry/device-gpio
- name: device-rest
repo: edgexfoundry/device-rest-go
- name: device-snmp
repo: edgexfoundry/device-snmp-go
- name: device-modbus
repo: edgexfoundry/device-modbus-go
- name: edgexfoundry
repo: edgexfoundry/edgex-go
- name: cli
repo: edgexfoundry/edgex-cli
- name: ui
repo: edgexfoundry/edgex-ui-go
- name: device-rfid-llrp
repo: edgexfoundry/device-rfid-llrp-go
- name: app-rfid-llrp-inventory
repo: edgexfoundry/app-rfid-llrp-inventory
- name: device-virtual
repo: edgexfoundry/device-virtual-go
- name: device-usb-camera
repo: edgexfoundry/device-usb-camera
- name: device-onvif-camera
repo: edgexfoundry/device-onvif-camera
- name: edgex-no-sec
repo: edgexfoundry/edgex-go
# use local action to test
steps:
- name: Checkout the local actions
uses: actions/checkout@v3
- name: Build snap
if: ${{ inputs.localBuild }}
uses: ./build
id: build
with:
repo: ${{matrix.repo}}
- name: Checkout the local actions again
uses: actions/checkout@v3
- name: Test snap
uses: ./test
with:
name: ${{matrix.name}}
snap: ${{ inputs.localBuild == true && steps.build.outputs.snap || '' }}
channel: ${{matrix.channel}}
platform_channel: ${{matrix.platform_channel}}
full_config_test: true