mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 17:44:21 +01:00
The snap/snapcraft.yaml set AGENT_VERSION to the current VERSION. The osbuilder script will try to checkout the AGENT_VERSION tag. Let's ensure that all tags and branches are fetched by the github's checkout action so the tag checkout does not fail. Fixes #2052 Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
18 lines
350 B
YAML
18 lines
350 B
YAML
name: snap CI
|
|
on: ["pull_request"]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Snapcraft
|
|
uses: samuelmeuli/action-snapcraft@v1
|
|
|
|
- name: Build snap
|
|
run: |
|
|
snapcraft -d snap --destructive-mode
|