Skip to content

Commit ed161a8

Browse files
committed
Attempt to fixup tests.
1 parent 18b13a1 commit ed161a8

1 file changed

Lines changed: 4 additions & 27 deletions

File tree

.github/workflows/test-mkdocs-workflow.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ jobs:
4545
checkout-current-repo: false
4646
publish-to-pages: false
4747

48-
test-disable-checkout:
49-
runs-on: ubuntu-latest
50-
steps:
51-
- name: Test Disable Checkout
52-
uses: Reloaded-Project/devops-mkdocs@v1
53-
with:
54-
checkout-current-repo: false
55-
publish-to-pages: false
56-
5748
test-custom-pre-build-command-bash:
5849
runs-on: ubuntu-latest
5950
steps:
@@ -62,17 +53,10 @@ jobs:
6253
with:
6354
repository: Reloaded-Project/Reloaded.MkDocsMaterial.Themes.R2
6455
submodules: 'recursive'
65-
- name: Create Pre-build Command (Bash)
66-
shell: bash
67-
run: |
68-
echo '#!/bin/bash' > pre-build-bash.sh
69-
echo 'echo "Running pre-build command (Bash)"' >> pre-build-bash.sh
70-
echo 'ls -l' >> pre-build-bash.sh
71-
echo 'touch pre-build-bash-executed.txt' >> pre-build-bash.sh
7256
- name: Test Custom Pre-build Command (Bash)
7357
uses: Reloaded-Project/devops-mkdocs@v1
7458
with:
75-
pre-build-command: pre-build-bash.sh
59+
pre-build-command: touch pre-build-bash-executed.txt
7660
pre-build-command-shell: bash
7761
checkout-current-repo: false
7862
publish-to-pages: false
@@ -92,17 +76,10 @@ jobs:
9276
with:
9377
repository: Reloaded-Project/Reloaded.MkDocsMaterial.Themes.R2
9478
submodules: 'recursive'
95-
- name: Create Pre-build Command (PowerShell)
96-
shell: pwsh
97-
run: |
98-
echo '#!/usr/bin/env pwsh' > pre-build-pwsh.ps1
99-
echo 'Write-Output "Running pre-build command (PowerShell)"' >> pre-build-pwsh.ps1
100-
echo 'Get-ChildItem' >> pre-build-pwsh.ps1
101-
echo 'New-Item -ItemType File -Path pre-build-pwsh-executed.txt' >> pre-build-pwsh.ps1
10279
- name: Test Custom Pre-build Command (PowerShell)
10380
uses: Reloaded-Project/devops-mkdocs@v1
10481
with:
105-
pre-build-command: pre-build-pwsh.ps1
82+
pre-build-command: New-Item -ItemType File -Path pre-build-pwsh-executed.txt
10683
pre-build-command-shell: pwsh
10784
checkout-current-repo: false
10885
publish-to-pages: false
@@ -164,11 +141,11 @@ jobs:
164141
submodules: 'recursive'
165142
- name: Copy Custom Config File
166143
shell: bash
167-
run: cp mkdocs.yml docs/custom-mkdocs.yml
144+
run: cp mkdocs.yml custom-mkdocs.yml
168145
- name: Test Custom Config File
169146
uses: Reloaded-Project/devops-mkdocs@v1
170147
with:
171-
config-file: docs/custom-mkdocs.yml
148+
config-file: custom-mkdocs.yml
172149
checkout-current-repo: false
173150
publish-to-pages: false
174151

0 commit comments

Comments
 (0)