Skip to content

Commit

Permalink
added snap install test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
infinityofspace committed Aug 23, 2022
1 parent 7bcd838 commit 4a81eda
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/snap_install_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: snap install test

on:
push:
pull_request:

jobs:
test-snap-install:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: build snap
uses: snapcore/action-build@v1
id: snapcraft

- uses: actions/upload-artifact@v3
with:
name: snap
path: ${{ steps.snapcraft.outputs.snap }}

- name: install certbot
run: sudo snap install certbot --classic

- name: install snap build
run: sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}

- name: connect plugin to certbot
run: |
sudo snap set certbot trust-plugin-with-root=ok
sudo snap connect certbot:plugin certbot-dns-porkbun
- name: check if plugin is registered
run: certbot plugins | grep -c "certbot_dns_porkbun" || true

0 comments on commit 4a81eda

Please sign in to comment.