-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.04 KB
/
integration-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Integration tests
on:
workflow_call:
jobs:
integration-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install rockcraft
run: |
sudo snap install rockcraft --classic --channel edge
- name: Install yq
run: |
sudo snap install yq
- uses: actions/download-artifact@v4
with:
name: rock
- name: Import
run: |
image_name="$(yq '.name' rockcraft.yaml)"
echo "image_name=${image_name}" >> $GITHUB_ENV
version="$(yq '.version' rockcraft.yaml)"
echo "version=${version}" >> $GITHUB_ENV
rock_file=$(ls *.rock | tail -n 1)
sudo rockcraft.skopeo \
--insecure-policy \
copy \
oci-archive:"${rock_file}" \
docker-daemon:"${image_name}-rock:test"
- name: Install tox
run: pip install tox
- name: Integration tests
id: test_image
run: cd tests && tox -e integration