Skip to content

Commit 43cc963

Browse files
authored
chore: bump @playwright/test to 1.47.2 (nasa#7859)
1 parent ad30a0e commit 43cc963

File tree

8 files changed

+140
-20
lines changed

8 files changed

+140
-20
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ orbs:
55
executors:
66
pw-focal-development:
77
docker:
8-
- image: mcr.microsoft.com/playwright:v1.45.2-focal
8+
- image: mcr.microsoft.com/playwright:v1.47.2-focal
99
environment:
1010
NODE_ENV: development # Needed to ensure 'dist' folder created and devDependencies installed
1111
PERCY_POSTINSTALL_BROWSER: "true" # Needed to store the percy browser in cache deps
@@ -198,7 +198,7 @@ jobs:
198198
steps:
199199
- build_and_install:
200200
node-version: lts/hydrogen
201-
- run: npx playwright@1.45.2 install #Necessary for bare ubuntu machine
201+
- run: npx playwright@1.47.2 install #Necessary for bare ubuntu machine
202202
- run: |
203203
export $(cat src/plugins/persistence/couch/.env.ci | xargs)
204204
docker compose -f src/plugins/persistence/couch/couchdb-compose.yaml up --detach

.github/workflows/e2e-couchdb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
username: ${{ secrets.DOCKERHUB_USERNAME }}
3838
password: ${{ secrets.DOCKERHUB_TOKEN }}
3939

40-
- run: npx playwright@1.45.2 install
40+
- run: npx playwright@1.47.2 install
4141

4242
- name: Start CouchDB Docker Container and Init with Setup Scripts
4343
run: |

.github/workflows/e2e-flakefinder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
restore-keys: |
3131
${{ runner.os }}-node-
3232
33-
- run: npx playwright@1.45.2 install
33+
- run: npx playwright@1.47.2 install
3434
- run: npm ci --no-audit --progress=false
3535

3636
- name: Run E2E Tests (Repeated 10 Times)

.github/workflows/e2e-perf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
restore-keys: |
2929
${{ runner.os }}-node-
3030
31-
- run: npx playwright@1.45.2 install
31+
- run: npx playwright@1.47.2 install
3232
- run: npm ci --no-audit --progress=false
3333
- run: npm run test:perf:localhost
3434
- run: npm run test:perf:contract

.github/workflows/e2e-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
restore-keys: |
3434
${{ runner.os }}-node-
3535
36-
- run: npx playwright@1.45.2 install
36+
- run: npx playwright@1.47.2 install
3737
- run: npx playwright install chrome-beta
3838
- run: npm ci --no-audit --progress=false
3939
- run: npm run test:e2e:full -- --max-failures=40

.github/workflows/release.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# GitHub Actions Workflow for Automated Releases
2+
3+
name: Automated Release Workflow
4+
5+
on:
6+
schedule:
7+
# Nightly builds at 6 PM PST every day
8+
- cron: '0 2 * * *'
9+
release:
10+
types:
11+
- created
12+
- published
13+
14+
jobs:
15+
nightly-build:
16+
if: github.event_name == 'schedule'
17+
runs-on: ubuntu-latest
18+
name: Nightly Build and Release
19+
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@v4
22+
23+
- name: Set Up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 'lts/iron' # Specify your Node.js version
27+
registry-url: 'https://registry.npmjs.org/'
28+
29+
- name: Install Dependencies
30+
run: npm ci
31+
32+
- name: Bump Version for Nightly
33+
id: bump_version
34+
run: |
35+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
36+
DATE=$(date +%Y%m%d)
37+
NIGHTLY_VERSION=$(echo $PACKAGE_VERSION | awk -F. -v OFS=. '{$NF+=1; print}')-nightly-$DATE
38+
echo "NIGHTLY_VERSION=${NIGHTLY_VERSION}" >> $GITHUB_ENV
39+
40+
- name: Update package.json
41+
run: |
42+
npm version $NIGHTLY_VERSION --no-git-tag-version
43+
git config user.name "github-actions[bot]"
44+
git config user.email "github-actions[bot]@users.noreply.github.com"
45+
git add package.json
46+
git commit -m "chore: bump version to $NIGHTLY_VERSION for nightly build"
47+
48+
- name: Push Changes
49+
uses: ad-m/github-push-action@v0.6.0
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
branch: ${{ github.ref }}
53+
54+
- name: Build Project
55+
run: npm run build:prod
56+
57+
- name: Publish Nightly to NPM
58+
run: |
59+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
60+
npm publish --access public --tag nightly
61+
env:
62+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
63+
64+
prerelease-build:
65+
if: github.event.release.prerelease == true
66+
runs-on: ubuntu-latest
67+
name: Pre-release (Beta) Build and Publish
68+
steps:
69+
- name: Checkout Repository
70+
uses: actions/checkout@v4
71+
72+
- name: Set Up Node.js
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: '16' # Specify your Node.js version
76+
registry-url: 'https://registry.npmjs.org/'
77+
78+
- name: Install Dependencies
79+
run: npm ci
80+
81+
- name: Build Project
82+
run: npm run build:prod
83+
84+
- name: Publish Beta to NPM
85+
run: |
86+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
87+
npm publish --access public --tag beta
88+
env:
89+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
90+
91+
stable-release-build:
92+
if: github.event.release.prerelease == false
93+
runs-on: ubuntu-latest
94+
name: Stable Release Build and Publish
95+
steps:
96+
- name: Checkout Repository
97+
uses: actions/checkout@v4
98+
99+
- name: Set Up Node.js
100+
uses: actions/setup-node@v4
101+
with:
102+
node-version: '16' # Specify your Node.js version
103+
registry-url: 'https://registry.npmjs.org/'
104+
105+
- name: Install Dependencies
106+
run: npm ci
107+
108+
- name: Build Project
109+
run: npm run build:prod
110+
111+
- name: Publish to NPM
112+
run: |
113+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
114+
npm publish --access public
115+
env:
116+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

e2e/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"devDependencies": {
1717
"@percy/cli": "1.27.4",
1818
"@percy/playwright": "1.0.4",
19-
"@playwright/test": "1.45.2",
19+
"@playwright/test": "1.47.2",
2020
"@axe-core/playwright": "4.8.5"
2121
},
2222
"author": {
2323
"name": "National Aeronautics and Space Administration",
2424
"url": "https://www.nasa.gov"
2525
},
2626
"license": "Apache-2.0"
27-
}
27+
}

package-lock.json

Lines changed: 16 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)