Skip to content

Commit 85aad24

Browse files
authored
W-19307418 Implement agent parameters handling (#60)
* Implement agent parameters handling and PII detection in ApiBodyDocumentElement * 4.4.13 * Remove unnecessary blank line in ApiBodyDocumentElement.js * Update @api-components/amf-helper-mixin to version 4.5.33 in package.json and package-lock.json * Update GitHub Actions workflow to use Node.js 18 and Ubuntu 22.04, remove Windows testing, and enhance Playwright setup. * Update dependencies in package.json and package-lock.json, including downgrading @web/dev-server and @web/test-runner versions, upgrading eslint to version 8.0.0, and updating lint-staged to version 11.2.2. Add new dependencies and remove deprecated ones. * Comment out the testRunnerHtml function in web-test-runner.config.mjs to disable custom HTML output for test runners. * Refactor GitHub Actions workflow to improve testing setup by enabling Windows support, updating Node.js and checkout actions, and enhancing caching for npm dependencies. * Update test commands in package.json to use npx for web-test-runner, ensuring consistent execution across environments. * Restore the testRunnerHtml function in web-test-runner.config.mjs to enable custom HTML output for test runners. * Refactor test commands in package.json to remove npx, streamlining execution of web-test-runner. * Update test and start scripts in package.json to use npx for improved command execution consistency.
1 parent 226dcc3 commit 85aad24

File tree

4 files changed

+5021
-1777
lines changed

4 files changed

+5021
-1777
lines changed

.github/workflows/deployment.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-20.04]
21-
# os: [ubuntu-18.04, ubuntu-20.04]
20+
os: [ubuntu-22.04]
2221
runs-on: ${{ matrix.os }}
2322
steps:
2423
- uses: actions/checkout@v2
2524
- uses: actions/setup-node@v1
2625
with:
27-
node-version: 16
28-
- uses: microsoft/playwright-github-action@v1
29-
- uses: actions/cache@v1
26+
node-version: 18
27+
- uses: actions/cache@v3
3028
with:
3129
path: ~/.npm
3230
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3331
restore-keys: |
3432
${{ runner.os }}-node-
3533
- name: Install dependencies
36-
run: npm ci
34+
run: npm install
35+
- name: Install Playwright Browsers
36+
run: npx playwright install --with-deps
3737
- name: Run tests
3838
run: npm test
3939
test_win:
@@ -43,22 +43,23 @@ jobs:
4343
- uses: actions/checkout@v2
4444
- uses: actions/setup-node@v1
4545
with:
46-
node-version: 16
47-
- uses: microsoft/playwright-github-action@v1
48-
- uses: actions/cache@v1
46+
node-version: 18
47+
- uses: actions/cache@v3
4948
with:
5049
path: ~/.npm
5150
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
5251
restore-keys: |
5352
${{ runner.os }}-node-
5453
- name: Install dependencies
55-
run: npm ci
54+
run: npm install
55+
- name: Install Playwright Browsers
56+
run: npx playwright install --with-deps
5657
- name: Run tests
5758
run: npm test
5859
tag:
5960
name: "Publishing release"
6061
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
61-
needs:
62+
needs:
6263
- test_linux
6364
- test_win
6465
runs-on: ubuntu-latest
@@ -69,9 +70,9 @@ jobs:
6970
fetch-depth: 0
7071
- uses: actions/setup-node@v2
7172
with:
72-
node-version: '16.x'
73+
node-version: '18.x'
7374
registry-url: 'https://registry.npmjs.org'
74-
- uses: actions/cache@v1
75+
- uses: actions/cache@v3
7576
with:
7677
path: ~/.npm
7778
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -98,4 +99,4 @@ jobs:
9899
prerelease: false
99100
- run: npm publish --access public
100101
env:
101-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
102+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)