name: 🧪 Snap Builds

on:
  push:
    branches: '*'
  pull_request:
    branches: '*'
    
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [20.x]    

    steps:
      - uses: actions/checkout@v6

      - uses: snapcore/action-build@v1
        id: build
        
      - uses: diddlesnaps/snapcraft-review-action@v1
        with:
          snap: ${{ steps.build.outputs.snap }}
          isClassic: 'false'
          # Plugs and Slots declarations to override default denial (requires store assertion to publish)
          # plugs: ./plug-declaration.json
          # slots: ./slot-declaration.json
