Skip to content

Commit 523984e

Browse files
committed
Dummy: Dummy
1 parent 9594ce2 commit 523984e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ jobs:
2727
HUGO_VERSION=0.147.8
2828
ARCH=$(dpkg --print-architecture)
2929
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 install -y golang-go
3031
apt-get update && apt-get install -y /tmp/hugo.deb
3132
hugo version
33+
go version
3234
- name: Install dependencies
3335
run: cd tests && npm ci && npx playwright install --with-deps ${{ env.BROWSERS }} --only-shell
3436
- name: Run Playwright tests
3537
id: test-ui
3638
run: |
37-
cd tests && npx playwright test | tee output.log
39+
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
40+
cd ../tests && npx playwright test | tee output.log
3841
if grep -q "failed" output.log; then
3942
echo "Playwright tests failed. Please view the Playwright report to see full error."
4043
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)