-
Notifications
You must be signed in to change notification settings - Fork 55
45 lines (35 loc) · 1.14 KB
/
snap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Pebble snap
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
outputs:
pebble-snap: ${{ steps.build-pebble-snap.outputs.snap }}
steps:
- name: Checkout Pebble repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build Pebble Snap
id: build-pebble-snap
uses: snapcore/action-build@v1
- name: Attach pebble snap to GH workflow execution
uses: actions/upload-artifact@v2
with:
name: ${{ steps.build-pebble-snap.outputs.snap }}
path: ${{ steps.build-pebble-snap.outputs.snap }}
test:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/download-artifact@v3
with:
name: ${{ needs.build.outputs.pebble-snap }}
- name: Install the Pebble snap
run: |
# Install the Pebble snap from the artifact built in the previous job
sudo snap install --dangerous --classic ${{ needs.build.outputs.pebble-snap }}
# Make sure Pebble is installed
pebble version
- name: Run smoke test
run: pebble enter exec echo Hello | grep Hello