Skip to content

Commit a6d5bef

Browse files
authored
Fix ci (#5)
* install playwright in CI * build before publishing * run tests headless
1 parent dcd5eeb commit a6d5bef

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/node.js.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ jobs:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
2929
- run: npm ci
30+
- run: npx playwright install
3031
- run: npm run build --if-present
3132
- run: npm test

.github/workflows/npm-publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
with:
1717
node-version: 21
1818
- run: npm ci
19+
- run: npx playwright install
1920
- run: npm test
2021

2122
publish-npm:
@@ -28,6 +29,7 @@ jobs:
2829
node-version: 21
2930
registry-url: https://registry.npmjs.org/
3031
- run: npm ci
32+
- run: npm build
3133
- run: npm publish
3234
env:
3335
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

web-test-runner.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ export default {
88
return log.args[0] !== "Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.";
99
},
1010
browsers: [
11-
playwrightLauncher({
12-
launchOptions: {
13-
headless: false,
14-
devtools: true
15-
},
16-
}),
11+
playwrightLauncher(),
1712
],
1813
}

0 commit comments

Comments
 (0)