Skip to content

GitHub Action to review your built Snap package using the same tools as the Snap Store

License

Notifications You must be signed in to change notification settings

diddlesnaps/snapcraft-review-action

Repository files navigation

snapcraft-publish-action status

Snapcraft Snap Review Action

This is a Github Action that can be used to review snap packages using the same review tools as the Snap Store. In most cases, it will be used with the snapcraft-build-action action to build the package. The following workflow should be sufficient:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: snapcore/action-build@v1
      id: build
    - uses: diddlesnaps/snapcraft-review-action@v1
      with:
        snap: ${{ steps.build.outputs.snap }}

This will build the project and run the review-tools Snap Review program on the result. In addition to the configuration parameter snap you may also optionally specify paths for plugs and slots declaration files in the plugs and slots keys respectively. The final configuration parameter that may be specified is called isClassic which you must set to true to indicate that the Snap is expected to use classic confinement.

A full configuration could look like below:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: snapcore/action-build@v1
      id: build
    - uses: diddlesnaps/snapcraft-review-action@v1
      with:
        snap: ${{ steps.build.outputs.snap }}
        plugs: ./plug-declaration.json
        slots: ./slot-declaration.json
        isClassic: 'false'

Other Snapcraft actions

The Snapcraft community has created other actions that may be useful for Snap Packagers:

About

GitHub Action to review your built Snap package using the same tools as the Snap Store

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published