Skip to content

Commit ac7bd13

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

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
test-install:
2121
runs-on: ubuntu-24.04
2222
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 }}."
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 }}."
2525
#- name: Dump GitHub context (typically almost 500 lines)
2626
# env:
2727
# GITHUB_CONTEXT: ${{ toJSON(github) }}
@@ -30,26 +30,31 @@ jobs:
3030
uses: actions/checkout@v4
3131
with:
3232
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 }}."
33+
#- run: echo "🍏 This job's status [SO FAR!] is ${{ job.status }}."
3434
- name: GitHub Actions "runner" environment
3535
run: |
3636
uname -a # uname -srm
3737
whoami # Typically 'runner' instead of 'root'
3838
pwd # /home/runner/work/iiab/iiab == $GITHUB_WORKSPACE == ${{ github.workspace }}
39+
echo $SHELL
40+
ls
3941
# ls -la /opt # az, containerd, google, hostedtoolcache, microsoft, mssql-tools, pipx, pipx_bin, post-generation, runner, vsts
4042
# apt update && apt dist-upgrade -y && apt autoremove -y
4143
- name: Set up /opt/iiab/iiab # Some steps to get ready for the install
4244
run: |
4345
mkdir /opt/iiab
4446
mv $GITHUB_WORKSPACE /opt/iiab
4547
mkdir $GITHUB_WORKSPACE # OR SUBSEQUENT STEPS WILL FAIL ('working-directory: /opt/iiab/iiab' hacks NOT worth it!)
48+
defaults:
49+
run:
50+
working-directory: /opt/iiab/iiab
51+
steps:
4652
- name: Set up /etc/iiab/local_vars.yml
4753
run: |
4854
sudo mkdir /etc/iiab
4955
# 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
56+
sudo cp vars/local_vars_unittest.yml /etc/iiab/local_vars.yml
57+
- run: sudo scripts/ansible # Installs Ansible
58+
- run: sudo ./iiab-install # Installs IIAB!
5459
- run: iiab-summary
5560
- 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)