Skip to content

Commit 4a0740d

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

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ 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:
2326
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
2427
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
@@ -36,6 +39,8 @@ jobs:
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)