Skip to content

Commit

Permalink
Fix ci (#5)
Browse files Browse the repository at this point in the history
* install playwright in CI

* build before publishing

* run tests headless
  • Loading branch information
koddsson committed Mar 29, 2024
1 parent dcd5eeb commit a6d5bef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx playwright install
- run: npm run build --if-present
- run: npm test
2 changes: 2 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
with:
node-version: 21
- run: npm ci
- run: npx playwright install
- run: npm test

publish-npm:
Expand All @@ -28,6 +29,7 @@ jobs:
node-version: 21
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
7 changes: 1 addition & 6 deletions web-test-runner.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export default {
return log.args[0] !== "Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.";
},
browsers: [
playwrightLauncher({
launchOptions: {
headless: false,
devtools: true
},
}),
playwrightLauncher(),
],
}

0 comments on commit a6d5bef

Please sign in to comment.