forked from canonical/cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add automation for ubuntu/* branches asserting quilt patches apply
- Loading branch information
1 parent
d79050d
commit fdc3f60
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Integration 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: | ||
quilt-patch-apply: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
with: | ||
# Fetch all tags for tools/read-version | ||
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: Quilt apply and test | ||
run: | | ||
echo ====== Ensure quilt patches apply to local branch ======= | ||
quilt push -a | ||
tox -e py3 | ||
quilt pop -a |