-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (44 loc) · 1.52 KB
/
Test_Changed_Recipes.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
44
45
46
47
48
49
50
51
52
---
name: Test Changed Recipes
on:
push:
paths:
- "**.recipe.yaml"
pull_request:
paths:
- "**.recipe.yaml"
jobs:
TestChangedRecipes:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2 # OR "2" -> To retrieve the preceding commit.
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: "**.recipe.yaml"
# Ignore windows only recipes:
files_ignore: |
AutoPkgRecipe/AutoPkgRelease.nupkg.recipe.yaml
- name: List all changed files
if: steps.changed-files.outputs.any_changed == 'true'
run: |
for file in ${{ steps.changed-files.outputs.all_changed_and_modified_files }}; do
echo "$file" >> TestRecipesAction.txt
done
cat TestRecipesAction.txt
- name: setup-autopkg local action
if: steps.changed-files.outputs.any_changed == 'true'
uses: ./.github/actions/setup-autopkg
- name: Install repo requirements
if: steps.changed-files.outputs.any_changed == 'true'
run: pip install --requirement requirements.txt
- name: Install prereq
if: steps.changed-files.outputs.any_changed == 'true'
run: apt-get install msitools -y
- name: run recipe autopkg
if: steps.changed-files.outputs.any_changed == 'true'
run: python autopkg/Code/autopkg run -vv --recipe-list TestRecipesAction.txt