Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/get-matrix.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ for (const packagePath of await readdir(packagesPath)) {
const pkg = join(packagesPath, packagePath, 'package.json')
const { name, scripts } = JSON.parse(await readFile(pkg))
if (scripts && scripts.test && scripts.test !== 'exit 0') {
packages.push(name)
packages.push({
name,
filter: `./packages/${packagePath}`
})
}
}

console.log(`{"package":${JSON.stringify(packages)}}`)
console.log(JSON.stringify({ package: packages }))
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
test:
name: Test ${{ matrix.package.name }}
if: |
!startsWith(github.event.head_commit.message, 'chore(release):') &&
!startsWith(github.event.head_commit.message, 'docs:') &&
Expand All @@ -64,15 +65,15 @@ jobs:
version: latest
run_install: true
- name: Test
run: pnpm --filter "${{ matrix.package }}" exec c8 pnpm test
run: pnpm --filter "${{ matrix.package.filter }}" exec c8 pnpm test
- name: Coverage
run: pnpm --filter "${{ matrix.package }}" exec c8 report --reporter=lcov --report-dir=coverage
run: pnpm --filter "${{ matrix.package.filter }}" exec c8 report --reporter=lcov --report-dir=coverage
- name: Upload
uses: coverallsapp/github-action@main
with:
flag-name: ${{ matrix.package }}
flag-name: ${{ matrix.package.name }}
parallel: true
file: $(pnpm --filter "${{ matrix.package }}" exec pwd)/coverage/lcov.info
file: $(pnpm --filter "${{ matrix.package.filter }}" exec pwd)/coverage/lcov.info

finish:
needs: test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
test:
name: Test ${{ matrix.package.name }}
needs: matrix
runs-on: ubuntu-latest
strategy:
Expand All @@ -39,15 +40,15 @@ jobs:
version: latest
run_install: true
- name: Test
run: pnpm --filter "${{ matrix.package }}" exec c8 pnpm test
run: pnpm --filter "${{ matrix.package.filter }}" exec c8 pnpm test
- name: Coverage
run: pnpm --filter "${{ matrix.package }}" exec c8 report --reporter=lcov --report-dir=coverage
run: pnpm --filter "${{ matrix.package.filter }}" exec c8 report --reporter=lcov --report-dir=coverage
- name: Upload
uses: coverallsapp/github-action@main
with:
flag-name: ${{ matrix.package }}
flag-name: ${{ matrix.package.name }}
parallel: true
file: $(pnpm --filter "${{ matrix.package }}" exec pwd)/coverage/lcov.info
file: $(pnpm --filter "${{ matrix.package.filter }}" exec pwd)/coverage/lcov.info

finish:
needs: test
Expand Down
4 changes: 2 additions & 2 deletions packages/browserless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"@browserless/goto": "^10.9.15",
"@browserless/pdf": "^10.9.15",
"@browserless/screenshot": "^10.9.15",
"debug-logfmt": "~1.4.5",
"debug-logfmt": "~1.4.7",
"kill-process-group": "~1.0.13",
"p-reflect": "~2.1.0",
"p-retry": "~4.6.1",
"p-timeout": "~4.1.0",
"require-one-of": "~1.0.24",
"superlock": "~1.2.4"
"superlock": "~1.2.6"
},
"devDependencies": {
"@browserless/test": "^10.9.15",
Expand Down
4 changes: 2 additions & 2 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"qualified"
],
"dependencies": {
"debug-logfmt": "~1.4.5",
"debug-logfmt": "~1.4.7",
"ensure-error": "~3.0.1",
"serialize-error": "~8.1.0",
"whoops": "~5.0.3"
"whoops": "~5.1.0"
},
"devDependencies": {
"ava": "5"
Expand Down
2 changes: 1 addition & 1 deletion packages/function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"dependencies": {
"@browserless/errors": "^10.9.7",
"isolated-function": "~0.1.47",
"isolated-function": "~0.1.48",
"require-one-of": "~1.0.24"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/goto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
],
"dependencies": {
"@browserless/devices": "^10.7.13",
"@ghostery/adblocker-puppeteer": "~2.12.3",
"debug-logfmt": "~1.4.5",
"@ghostery/adblocker-puppeteer": "~2.13.4",
"debug-logfmt": "~1.4.7",
"got": "~11.8.6",
"is-url-http": "~2.3.11",
"is-url-http": "~2.3.13",
"p-reflect": "~2.1.0",
"p-timeout": "~4.1.0",
"shallow-equal": "~3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/lighthouse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"stats"
],
"dependencies": {
"lighthouse": "~12.8.2"
"lighthouse": "~13.0.1"
},
"devDependencies": {
"@browserless/test": "^10.9.15",
Expand Down
1 change: 0 additions & 1 deletion packages/lighthouse/test/snapshots/index.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ Generated by [AVA](https://avajs.dev).
},
skipAboutBlank: false,
skipAudits: [
'uses-http2',
'modern-http-insight',
'bf-cache',
],
Expand Down
Binary file modified packages/lighthouse/test/snapshots/index.js.snap
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"dependencies": {
"@browserless/goto": "^10.9.15",
"@browserless/screenshot": "^10.9.15",
"@kikobeats/time-span": "~1.0.9",
"debug-logfmt": "~1.4.5",
"@kikobeats/time-span": "~1.0.11",
"debug-logfmt": "~1.4.7",
"pretty-ms": "~7.0.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/screencast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"video"
],
"dependencies": {
"null-prototype-object": "~1.2.3"
"null-prototype-object": "~1.2.5"
},
"devDependencies": {
"@browserless/test": "^10.9.15",
Expand Down
12 changes: 6 additions & 6 deletions packages/screenshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
],
"dependencies": {
"@browserless/goto": "^10.9.15",
"@kikobeats/content-type": "~1.0.1",
"@kikobeats/time-span": "~1.0.9",
"debug-logfmt": "~1.4.5",
"@kikobeats/content-type": "~1.0.3",
"@kikobeats/time-span": "~1.0.11",
"debug-logfmt": "~1.4.7",
"got": "~11.8.6",
"is-html-content": "~1.0.0",
"is-url-http": "~2.3.11",
"is-url-http": "~2.3.13",
"jimp": "~1.6.0",
"map-values-deep": "~1.0.2",
"mime": "~3.0.0",
"null-prototype-object": "~1.2.3",
"null-prototype-object": "~1.2.5",
"p-reflect": "~2.1.0",
"pretty-ms": "~7.0.1",
"prism-themes": "~1.9.0",
"sharp": "~0.34.4",
"sharp": "~0.34.5",
"svg-gradient": "~1.0.3"
},
"devDependencies": {
Expand Down
6 changes: 2 additions & 4 deletions packages/screenshot/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ test('graphics features', async t => {
Rasterization: 'Hardware accelerated',
'Raw Draw': 'Disabled',
'Skia Graphite': 'Disabled',
TreesInViz: 'Disabled',
TreesInViz: 'Enabled',
'Video Decode': 'Hardware accelerated',
'Video Encode': 'Software only. Hardware acceleration disabled',
Vulkan: 'Disabled',
WebGL: 'Hardware accelerated but at reduced performance',
WebGL2: 'Hardware accelerated but at reduced performance',
WebGPU: 'Disabled',
WebGPU: 'Software only, hardware acceleration unavailable',
WebNN: 'Disabled'
}
: {
Expand All @@ -62,7 +61,6 @@ test('graphics features', async t => {
'Video Decode': 'Hardware accelerated',
'Video Encode': 'Hardware accelerated',
WebGL: 'Hardware accelerated but at reduced performance',
WebGL2: 'Hardware accelerated but at reduced performance',
WebGPU: 'Software only, hardware acceleration unavailable',
WebNN: 'Disabled'
}
Expand Down
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"fs-extra": "latest",
"img-diff-js": "latest",
"pdf-parse": "latest",
"puppeteer": "24.23.0",
"puppeteer": "24.36.0",
"signal-exit": "latest",
"temperment": "latest"
},
Expand Down