mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-29 03:54:27 +01:00
Run the snap CI on every PR is not needed. Don't run the snap CI on PRs that don't change the source code (*.go/*.rs), a configuration file or Makefile. fixes #896 Signed-off-by: Julio Montes <julio.montes@intel.com>
26 lines
474 B
YAML
26 lines
474 B
YAML
name: snap CI
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "**/Makefile"
|
|
- "**/*.go"
|
|
- "**/*.mk"
|
|
- "**/*.rs"
|
|
- "**/*.sh"
|
|
- "**/*.toml"
|
|
- "**/*.yaml"
|
|
- "**/*.yml"
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Snapcraft
|
|
uses: samuelmeuli/action-snapcraft@v1
|
|
|
|
- name: Build snap
|
|
run: |
|
|
snapcraft -d snap --destructive-mode
|