Skip to content

Commit 600e58a

Browse files
committed
Try default "working-directory: /opt/iiab/iiab"
1 parent 085ea88 commit 600e58a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/10min-iiab-unittest-ubuntu.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ on: [push, pull_request, workflow_dispatch]
1919
jobs:
2020
test-install:
2121
runs-on: ubuntu-24.04
22+
defaults:
23+
run:
24+
working-directory: /opt/iiab/iiab
2225
steps:
23-
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
24-
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
26+
#- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
27+
#- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
2528
#- name: Dump GitHub context (typically almost 500 lines)
2629
# env:
2730
# GITHUB_CONTEXT: ${{ toJSON(github) }}
@@ -30,12 +33,14 @@ jobs:
3033
uses: actions/checkout@v4
3134
with:
3235
fetch-depth: 0 # Default is 1, but iiab-summary (below) needs git tag history. FYI "fetch-depth: 0" works but is way too greedy, downloading all branches. The ideal would've been "fetch-depth: 10000" with "fetch-tags: true" -- but this remains broken as of actions/checkout@v4 on 2025-03-26: see issues #217, #338, PR #1396, #1467, #1471, #1662 in https://github.com/actions/checkout -- Dec 2020 background: https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/
33-
- run: echo "🍏 This job's status [SO FAR!] is ${{ job.status }}."
36+
#- run: echo "🍏 This job's status [SO FAR!] is ${{ job.status }}."
3437
- name: GitHub Actions "runner" environment
3538
run: |
3639
uname -a # uname -srm
3740
whoami # Typically 'runner' instead of 'root'
3841
pwd # /home/runner/work/iiab/iiab == $GITHUB_WORKSPACE == ${{ github.workspace }}
42+
echo $SHELL
43+
ls
3944
# ls -la /opt # az, containerd, google, hostedtoolcache, microsoft, mssql-tools, pipx, pipx_bin, post-generation, runner, vsts
4045
# apt update && apt dist-upgrade -y && apt autoremove -y
4146
- name: Set up /opt/iiab/iiab # Some steps to get ready for the install
@@ -47,9 +52,8 @@ jobs:
4752
run: |
4853
sudo mkdir /etc/iiab
4954
# local_vars_unittest.yml installs a quite minimal IIAB, without IIAB Apps
50-
sudo cp /opt/iiab/iiab/vars/local_vars_unittest.yml /etc/iiab/local_vars.yml
51-
- run: sudo /opt/iiab/iiab/scripts/ansible # Installs Ansible
52-
- run: sudo ./iiab-install # Installs IIAB!
53-
working-directory: /opt/iiab/iiab
55+
sudo cp vars/local_vars_unittest.yml /etc/iiab/local_vars.yml
56+
- run: sudo scripts/ansible # Installs Ansible
57+
- run: sudo ./iiab-install # Installs IIAB!
5458
- run: iiab-summary
5559
- run: diff /opt/iiab/iiab/.github/workflows/tests/expected_state_unittest.yml /etc/iiab/iiab_state.yml --color # Final validation

0 commit comments

Comments
 (0)