Another attempt at fixing workflow
This commit is contained in:
parent
3855aeda0d
commit
fe74d2a77c
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -21,13 +21,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
make build
|
dpkg-buildpackage -us -uc -b
|
||||||
ls -la *.deb || (echo "No .deb file produced by make build" && exit 1)
|
ls -la ../*.deb || (echo "No .deb file produced" && exit 1)
|
||||||
|
|
||||||
- name: Verify package
|
- name: Verify package
|
||||||
run: |
|
run: |
|
||||||
dpkg-deb --info *.deb
|
dpkg-deb --info ../*.deb
|
||||||
dpkg-deb --contents *.deb
|
dpkg-deb --contents ../*.deb
|
||||||
|
|
||||||
- name: Test install
|
- name: Test install
|
||||||
run: |
|
run: |
|
||||||
@ -42,7 +42,7 @@ jobs:
|
|||||||
cp tests/mock/Nodes.pm /usr/share/perl5/PVE/API2/Nodes.pm
|
cp tests/mock/Nodes.pm /usr/share/perl5/PVE/API2/Nodes.pm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo dpkg -i *.deb
|
sudo dpkg -i ../*.deb
|
||||||
|
|
||||||
grep -q 'PVEMod_SensorInfo' /usr/share/perl5/PVE/API2/Nodes.pm \
|
grep -q 'PVEMod_SensorInfo' /usr/share/perl5/PVE/API2/Nodes.pm \
|
||||||
|| (echo "ERROR: Sensor patch not applied" && exit 1)
|
|| (echo "ERROR: Sensor patch not applied" && exit 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user