Skip to content

Commit 534f6c5

Browse files
committed
Dummy: Dummy
1 parent 9594ce2 commit 534f6c5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/playwright.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,17 @@ jobs:
2323
- name: Checkout code
2424
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2525
- name: Setup Hugo
26-
run: |
27-
HUGO_VERSION=0.147.8
28-
ARCH=$(dpkg --print-architecture)
29-
wget -O /tmp/hugo.deb "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${ARCH}.deb"
30-
apt-get update && apt-get install -y /tmp/hugo.deb
31-
hugo version
26+
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
27+
with:
28+
hugo-version: '0.147.8'
29+
extended: true
3230
- name: Install dependencies
3331
run: cd tests && npm ci && npx playwright install --with-deps ${{ env.BROWSERS }} --only-shell
3432
- name: Run Playwright tests
3533
id: test-ui
3634
run: |
37-
cd tests && npx playwright test | tee output.log
35+
cd exampleSite && sed -i.bkp 's/disable_coveo = .*/disable_coveo = false/' hugo.toml && hugo mod get && hugo --gc --config hugo.toml,hugo.test.toml && hugo serve --port 1313 --config hugo.toml,hugo.test.toml
36+
cd ../tests && npx playwright test | tee output.log
3837
if grep -q "failed" output.log; then
3938
echo "Playwright tests failed. Please view the Playwright report to see full error."
4039
exit 1

tests/playwright.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default defineConfig({
3333
},
3434
],
3535
webServer: {
36-
command: `cd ../exampleSite && sed -i.bkp 's/disable_coveo = .*/disable_coveo = false/' hugo.toml && hugo mod get && hugo --gc --config hugo.toml,hugo.test.toml && hugo serve --port ${PORT} --config hugo.toml,hugo.test.toml`,
3736
url: `${BASE_URL}:${PORT}`,
3837
stdout: 'ignore',
3938
reuseExistingServer: !process.env.CI,

0 commit comments

Comments
 (0)