2022-01-26 10:51:10 +01:00
|
|
|
name: Test Snap Package (Linux)
|
|
|
|
|
|
|
|
|
2021-09-10 09:55:07 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-10-06 11:21:54 +02:00
|
|
|
- .github/workflows/test-package-linux-snap.yml
|
2021-09-10 09:55:07 +02:00
|
|
|
- snapcraft.yaml
|
2021-12-21 18:28:23 +01:00
|
|
|
workflow_dispatch:
|
2021-09-10 09:55:07 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
snap:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-03 17:16:56 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-09-10 09:55:07 +02:00
|
|
|
- name: Build
|
|
|
|
uses: snapcore/action-build@v1
|
|
|
|
id: snapcraft
|
|
|
|
- name: Install
|
|
|
|
run: sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
httpie.http --version
|
|
|
|
httpie.https --version
|
2022-01-14 17:49:05 +01:00
|
|
|
httpie --version
|
2021-09-10 09:55:07 +02:00
|
|
|
# Auto-aliases cannot be tested when installing a snap outside the store.
|
|
|
|
# http --version
|
|
|
|
# https --version
|