Skip to content

Commit f59eac2

Browse files
author
Ian Walter
authored
Merge pull request #56 from ianwalter/updates
Updating to Node.js 16
2 parents 59f0447 + dc6c8bc commit f59eac2

File tree

10 files changed

+629
-173
lines changed

10 files changed

+629
-173
lines changed

.changeset/plenty-cameras-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"playwright-container": minor
3+
---
4+
5+
Updating to Playwright 1.14.1

.changeset/plenty-ways-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"playwright-container": major
3+
---
4+
5+
Updating to Node.js 16

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
.changeset
2+
.git
3+
.github
4+
.dockerignore
15
node_modules
6+
config.js
7+
tests.js

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
jobs:
77
release:
88
runs-on: ubuntu-latest
9-
container:
10-
image: node:15.4-buster
119
timeout-minutes: 10
1210
steps:
1311
- name: Checkout

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:15.14-buster
1+
FROM node:16-buster
22

33
LABEL "com.github.actions.name"="Playwright Container"
44
LABEL "com.github.actions.description"="A GitHub Action / Docker image for Playwright, the browser automation library"

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install
3434
# NOTE: this pins the action to a specific commit sha for security
3535
# reasons but you can also use a version tag if desired. For example:
36-
# ianwalter/playwright-container@v1.1.1
36+
# ianwalter/playwright-container@v3.0.0
3737
uses: ianwalter/playwright-container@ec253ce35910412cc6607f5d7cfbbe89fb77c9b4
3838
with:
3939
args: npm ci
@@ -46,14 +46,12 @@ jobs:
4646
As a [Docker container][dockerUrl]:
4747
4848
```console
49-
docker pull ianwalter/playwright:v1.1.1
49+
docker pull ianwalter/playwright:v3.0.0
5050
```
5151

5252
## Related
5353

5454
* [`@ianwalter/bff`][bffUrl] - Your friendly test framework
55-
* [`ianwalter/puppeteer-container`][puppeteerUrl] - A GitHub Action / Docker
56-
image for Puppeteer, the Headless Chrome Node API
5755

5856
## License
5957

config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,26 @@
1313
"test": "bff tests.js"
1414
},
1515
"dependencies": {
16-
"playwright": "^1.10.0"
16+
"playwright": "^1.14.1"
1717
},
1818
"devDependencies": {
1919
"@changesets/cli": "^2.16.0",
20-
"@ianwalter/bff": "^10.0.7",
20+
"@ianwalter/bff": "^11.0.0",
21+
"@ianwalter/bff-playwright": "^5.0.0",
2122
"@ianwalter/eslint-config": "^6.2.0",
2223
"@ianwalter/renovate-config": "^1.4.5"
2324
},
2425
"bff": {
2526
"plugins": [
26-
"config.js"
27-
]
27+
"@ianwalter/bff-playwright"
28+
],
29+
"playwright": {
30+
"browsers": [
31+
"chromium",
32+
"firefox",
33+
"webkit"
34+
]
35+
}
2836
},
2937
"eslintConfig": {
3038
"root": true,

tests.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { test } from '@ianwalter/bff'
22

33
test('My personal site', async t => {
4-
await t.page.goto('https://ianwalter.dev')
5-
t.expect(await t.page.innerText('body')).toContain('Ian Walter')
4+
const { page } = await t.chromium({ args: ['--no-sandbox'] })
5+
await page.goto('https://ianwalter.dev')
6+
t.expect(await page.innerText('body')).toContain('Ian Walter')
67
})

0 commit comments

Comments
 (0)