-
Notifications
You must be signed in to change notification settings - Fork 58
56 lines (49 loc) · 1.45 KB
/
install-docker.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
53
54
55
56
name: Test App Install
on:
pull_request: {}
jobs:
changed-files:
name: Get changed apps
runs-on: ubuntu-latest
outputs:
changed-apps: ${{ steps.changed-apps.outputs.changed-apps }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files-json
uses: tj-actions/changed-files@v44
with:
json: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Get changed apps
id: changed-apps
env:
CHANGED_FILES: ${{ steps.changed-files-json.outputs.all_changed_files }}
run: |
out=$(python3 .github/scripts/changed_apps.py)
echo "changed-apps=${out}" >> $GITHUB_OUTPUT
test-apps:
name: Test apps
needs: changed-files
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.changed-files.outputs.changed-apps) }}
steps:
- name: Environment Information
run: |
echo "====== Docker Info ======"
docker info
echo "========================="
- name: Checkout
uses: actions/checkout@v4
- name: Run app
shell: bash
run: |
echo "Running CI script"
train_dir=$(echo ${{ matrix.app }} | cut -d'/' -f1)
app_name=$(echo ${{ matrix.app }} | cut -d'/' -f2)
./.github/scripts/ci.sh $train_dir $app_name