-
Notifications
You must be signed in to change notification settings - Fork 881
47 lines (41 loc) · 1.21 KB
/
packaging-tests.yml
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
44
45
46
47
name: Packaging Tests
on:
pull_request:
branches:
- 'ubuntu/**'
concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true
defaults:
run:
shell: sh -ex {0}
env:
RELEASE: focal
jobs:
check-patches:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Fetch all branches for merging
fetch-depth: 0
- name: Prepare dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install tox quilt
- name: Setup quilt environment
run: |
echo 'QUILT_PATCHES=debian/patches' >> ~/.quiltrc
echo 'QUILT_SERIES=debian/patches/series' >> ~/.quiltrc
- name: 'Daily recipe: quilt patches apply successfully and tests run'
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git remote add upstream https://git.launchpad.net/cloud-init
git fetch upstream main
git checkout upstream/main
git merge ${{ github.sha }}
quilt push -a
tox -e py3
quilt pop -a