@@ -4,21 +4,39 @@ name: Tests - Docker Compose
44on :
55 workflow_call :
66 secrets :
7- REPO_GOOGLE_WORKLOAD_IDP :
8- required : true
97 FO_INTERNAL_LICENSE :
108 required : true
119 FO_LEGACY_LICENSE :
1210 required : true
11+ ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT :
12+ required : true
13+ REPO_GOOGLE_WORKLOAD_IDP :
14+ required : true
1315
1416jobs :
1517 unit-compose :
1618 runs-on : ubuntu-latest
1719 steps :
1820 - uses : actions/checkout@v6
21+ - name : Checkout voxel51/aloha-github-workflows
22+ uses : actions/checkout@v6
23+ with :
24+ repository : voxel51/aloha-github-workflows
25+ ref : main
26+ token : ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
27+ path : ./.github/actions/aloha-github-workflows
28+ - name : Set generate-version-file action's path from remote to local
29+ # Public repos cannot access private action repo without GitHub Enterprise
30+ # Instead, we clone the private workflow directory and update the `asdf-install-and-cache/action.yml`
31+ # file's reference to `voxel51/aloha-github-workflows/.github/actions/generate-version-file` with the local path.
32+ shell : bash
33+ run : |
34+ sed -i \
35+ 's%voxel51/aloha-github-workflows/.github/actions/generate-version-file@main%./.github/actions/aloha-github-workflows/.github/actions/generate-version-file%' \
36+ .github/actions/aloha-github-workflows/.github/actions/asdf-install-and-cache/action.yml
1937 - uses : actions/setup-python@v6.2.0
20- - name : install asdf & tools
21- uses : asdf-vm/ actions/install@v4.0.1
38+ - name : Install asdf & tools
39+ uses : ./.github/actions/aloha-github-workflows/.github/ actions/asdf- install-and-cache
2240 - name : Run unit tests
2341 shell : bash
2442 run : |
@@ -30,11 +48,27 @@ jobs:
3048 runs-on : ubuntu-latest
3149 steps :
3250 - uses : actions/checkout@v6
51+ - name : Checkout voxel51/aloha-github-workflows
52+ uses : actions/checkout@v6
53+ with :
54+ repository : voxel51/aloha-github-workflows
55+ ref : main
56+ token : ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
57+ path : ./.github/actions/aloha-github-workflows
58+ - name : Set generate-version-file action's path from remote to local
59+ # Public repos cannot access private action repo without GitHub Enterprise
60+ # Instead, we clone the private workflow directory and update the `asdf-install-and-cache/action.yml`
61+ # file's reference to `voxel51/aloha-github-workflows/.github/actions/generate-version-file` with the local path.
62+ shell : bash
63+ run : |
64+ sed -i \
65+ 's%voxel51/aloha-github-workflows/.github/actions/generate-version-file@main%./.github/actions/aloha-github-workflows/.github/actions/generate-version-file%' \
66+ .github/actions/aloha-github-workflows/.github/actions/asdf-install-and-cache/action.yml
3367 - uses : actions/setup-python@v6.2.0
3468 - name : Temporary SQLite/LZMA - Install missing libraries
3569 run : sudo apt install -y libsqlite3-dev libbz2-dev
36- - name : install asdf & tools
37- uses : asdf-vm/ actions/install@v4.0.1
70+ - name : Install asdf & tools
71+ uses : ./.github/actions/aloha-github-workflows/.github/ actions/asdf- install-and-cache
3872 - name : Authenticate to Google Cloud
3973 id : auth
4074 uses : google-github-actions/auth@v3
@@ -69,9 +103,25 @@ jobs:
69103 runs-on : ubuntu-latest
70104 steps :
71105 - uses : actions/checkout@v6
106+ - name : Checkout voxel51/aloha-github-workflows
107+ uses : actions/checkout@v6
108+ with :
109+ repository : voxel51/aloha-github-workflows
110+ ref : main
111+ token : ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
112+ path : ./.github/actions/aloha-github-workflows
113+ - name : Set generate-version-file action's path from remote to local
114+ # Public repos cannot access private action repo without GitHub Enterprise
115+ # Instead, we clone the private workflow directory and update the `asdf-install-and-cache/action.yml`
116+ # file's reference to `voxel51/aloha-github-workflows/.github/actions/generate-version-file` with the local path.
117+ shell : bash
118+ run : |
119+ sed -i \
120+ 's%voxel51/aloha-github-workflows/.github/actions/generate-version-file@main%./.github/actions/aloha-github-workflows/.github/actions/generate-version-file%' \
121+ .github/actions/aloha-github-workflows/.github/actions/asdf-install-and-cache/action.yml
72122 - uses : actions/setup-python@v6.2.0
73- - name : install asdf & tools
74- uses : asdf-vm/ actions/install@v4.0.1
123+ - name : Install asdf & tools
124+ uses : ./.github/actions/aloha-github-workflows/.github/ actions/asdf- install-and-cache
75125 - name : Authenticate to Google Cloud
76126 id : auth
77127 uses : google-github-actions/auth@v3
0 commit comments