From 67a4e8fec95f284caa502d297bf8f3c512c24a69 Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:04:27 -0800 Subject: [PATCH 1/5] Add azure pipeline CI (#7039) --- azure-pipelines-ci.yml | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 azure-pipelines-ci.yml diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml new file mode 100644 index 00000000000..ce7f16a3d0c --- /dev/null +++ b/azure-pipelines-ci.yml @@ -0,0 +1,87 @@ +trigger: + - master + +# The `resources` specify the location and version of the 1ES PT. +resources: + repositories: + - repository: 1esPipelines + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + +extends: + # The pipeline extends the 1ES PT which will inject different SDL and compliance tasks. + # For non-production pipelines, use "Unofficial" as defined below. + # For productions pipelines, use "Official". + template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines + parameters: + # Update the pool with your team's 1ES hosted pool. + pool: + name: OneESPool # Name of your hosted pool + image: HostedPoolLinuxImage # Name of the image in your pool. If not specified, first image of the pool is used + os: linux # OS of the image. This value cannot be a variable. Allowed values: windows, linux, macOS + sdl: + sourceAnalysisPool: + name: OneESPool # Name of your hosted pool + image: HostedPoolWindowsImage # Name of the image in your pool. If not specified, first image of the pool is used + os: windows # OS of the image. Allowed values: windows, linux, macOS + containers: + playwright_container: + image: mcr.microsoft.com/playwright:v1.47.2-noble + stages: + - stage: Stage + jobs: + - job: HostJob + # If the pipeline publishes artifacts, use `templateContext` to define the artifacts. + # This will enable 1ES PT to run SDL analysis tools on the artifacts and then upload them. + templateContext: + outputs: + - output: pipelineArtifact + targetPath: $(System.ArtifactsDirectory) + artifactName: drop + + container: playwright_container + + variables: + npm_config_cache: $(Pipeline.Workspace)/.npm + + steps: + - checkout: self + persistCredentials: "true" + + - task: UseNode@1 + inputs: + version: "20.x" + displayName: "Install Node.js" + + - task: Cache@2 + inputs: + key: 'npm | "$(Agent.OS)" | package-lock.json' + restoreKeys: | + npm | "$(Agent.OS)" + path: $(npm_config_cache) + displayName: "Cache npm" + + - script: | + npm ci + displayName: "Install package dependencies" + + - script: | + npm run checkchange + displayName: "Check for the presence of changed files inside ./change" + + - script: | + npm run format:check + displayName: "Test Prettier format" + + - script: | + npm run build + displayName: "Build workspaces" + + - script: | + npm run test + displayName: "Testing unit tests" + + - script: | + npm run test:validation + displayName: "Testing final validation" From 26c5078fff7b7d4990d4143913a71def113f2874 Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:45:04 -0800 Subject: [PATCH 2/5] Update playwright to latest (#7040) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Pull Request ## 📖 Description This change updates the playwright dependency and pipeline image to the latest version. ## ✅ Checklist ### General - [x] I have included a change request file using `$ npm run change` - [ ] I have added tests for my changes. - [x] I have tested my changes. - [ ] I have updated the project documentation to reflect my changes. - [x] I have read the [CONTRIBUTING](https://github.com/microsoft/fast/blob/master/CONTRIBUTING.md) documentation and followed the [standards](https://github.com/microsoft/fast/blob/master/CODE_OF_CONDUCT.md#our-standards) for this project. --- azure-pipelines-ci.yml | 2 +- ...-45005c89-fa17-44c9-b1ec-ef76c42e269e.json | 7 +++++ package-lock.json | 28 +++++++++++-------- packages/web-components/fast-ssr/package.json | 4 +-- 4 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 change/@microsoft-fast-ssr-45005c89-fa17-44c9-b1ec-ef76c42e269e.json diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index ce7f16a3d0c..5bd732a3d15 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -27,7 +27,7 @@ extends: os: windows # OS of the image. Allowed values: windows, linux, macOS containers: playwright_container: - image: mcr.microsoft.com/playwright:v1.47.2-noble + image: mcr.microsoft.com/playwright:v1.49.0-noble stages: - stage: Stage jobs: diff --git a/change/@microsoft-fast-ssr-45005c89-fa17-44c9-b1ec-ef76c42e269e.json b/change/@microsoft-fast-ssr-45005c89-fa17-44c9-b1ec-ef76c42e269e.json new file mode 100644 index 00000000000..bc971f75bd4 --- /dev/null +++ b/change/@microsoft-fast-ssr-45005c89-fa17-44c9-b1ec-ef76c42e269e.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Update playwright image and dependency to latest", + "packageName": "@microsoft/fast-ssr", + "email": "7559015+janechu@users.noreply.github.com", + "dependentChangeType": "none" +} diff --git a/package-lock.json b/package-lock.json index d5292382600..80ad2735e29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4759,12 +4759,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.45.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.45.0.tgz", - "integrity": "sha512-TVYsfMlGAaxeUllNkywbwek67Ncf8FRGn8ZlRdO291OL3NjG9oMbfVhyP82HQF0CZLMrYsvesqoUekxdWuF9Qw==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.49.0.tgz", + "integrity": "sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "playwright": "1.45.0" + "playwright": "1.49.0" }, "bin": { "playwright": "cli.js" @@ -23846,12 +23847,13 @@ } }, "node_modules/playwright": { - "version": "1.45.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.45.0.tgz", - "integrity": "sha512-4z3ac3plDfYzGB6r0Q3LF8POPR20Z8D0aXcxbJvmfMgSSq1hkcgvFRXJk9rUq5H/MJ0Ktal869hhOdI/zUTeLA==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.49.0.tgz", + "integrity": "sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.45.0" + "playwright-core": "1.49.0" }, "bin": { "playwright": "cli.js" @@ -23864,10 +23866,11 @@ } }, "node_modules/playwright-core": { - "version": "1.45.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.45.0.tgz", - "integrity": "sha512-lZmHlFQ0VYSpAs43dRq1/nJ9G/6SiTI7VPqidld9TDefL9tX87bTKExWZZUF5PeRyqtXqd8fQi2qmfIedkwsNQ==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.49.0.tgz", + "integrity": "sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==", "dev": true, + "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" }, @@ -23881,6 +23884,7 @@ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -31137,7 +31141,7 @@ "@microsoft/api-extractor": "^7.47.0", "@microsoft/fast-element": "^2.0.0", "@microsoft/fast-foundation": "^3.0.0-alpha.33", - "@playwright/test": "^1.41.2", + "@playwright/test": "^1.49.0", "@types/express": "^4.17.21", "@types/node": "^17.0.17", "express": "^4.19.2", diff --git a/packages/web-components/fast-ssr/package.json b/packages/web-components/fast-ssr/package.json index 08f1bff4620..3c898713c0a 100644 --- a/packages/web-components/fast-ssr/package.json +++ b/packages/web-components/fast-ssr/package.json @@ -59,10 +59,10 @@ "@microsoft/fast-element": "^2.0.0" }, "devDependencies": { + "@microsoft/api-extractor": "^7.47.0", "@microsoft/fast-element": "^2.0.0", "@microsoft/fast-foundation": "^3.0.0-alpha.33", - "@microsoft/api-extractor": "^7.47.0", - "@playwright/test": "^1.41.2", + "@playwright/test": "^1.49.0", "@types/express": "^4.17.21", "@types/node": "^17.0.17", "express": "^4.19.2", From 9cd1fd03727d2aae101bcc59053ff580cf636a50 Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Wed, 4 Dec 2024 07:53:32 -0800 Subject: [PATCH 3/5] Remove obsolete additional pipeline and workflow runs (#7043) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Pull Request ## 📖 Description This change removes the additional test runs in the azure pipeline and removes the obsolete CodeQL github workflow as this is part of the azure pipeline. ## ✅ Checklist ### General - [ ] I have included a change request file using `$ npm run change` - [ ] I have added tests for my changes. - [x] I have tested my changes. - [ ] I have updated the project documentation to reflect my changes. - [x] I have read the [CONTRIBUTING](https://github.com/microsoft/fast/blob/master/CONTRIBUTING.md) documentation and followed the [standards](https://github.com/microsoft/fast/blob/master/CODE_OF_CONDUCT.md#our-standards) for this project. --- .github/workflows/ci-validate-codeql.yml | 65 ------------------------ azure-pipelines-ci.yml | 23 +-------- 2 files changed, 1 insertion(+), 87 deletions(-) delete mode 100644 .github/workflows/ci-validate-codeql.yml diff --git a/.github/workflows/ci-validate-codeql.yml b/.github/workflows/ci-validate-codeql.yml deleted file mode 100644 index e815e6e13e7..00000000000 --- a/.github/workflows/ci-validate-codeql.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Validate CodeQL - -on: - workflow_dispatch: - push: - branches: - - master - - pull_request: - branches: - - master - - schedule: - - cron: 0 7 * * 3 - -permissions: - security-events: write - -jobs: - cross-platform_cross-browser: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: true - matrix: - os: [ubuntu-latest] - - env: - PLAYWRIGHT_BROWSERS_PATH: 0 - - steps: - - name: Set git to use LF - if: ${{ matrix.os == 'windows-latest' }} - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - - name: Checkout Branch - uses: actions/checkout@v2 - - - if: ${{ github.event_name == 'pull_request' }} - run: | - git fetch --no-tags --prune --depth=1 origin +refs/heads/master:refs/remotes/origin/master - - - name: Cache multiple paths - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: javascript-typescript - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:javascript-typescript" diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index 5bd732a3d15..bcf48d66b22 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -1,4 +1,4 @@ -trigger: +pr: - master # The `resources` specify the location and version of the 1ES PT. @@ -25,9 +25,6 @@ extends: name: OneESPool # Name of your hosted pool image: HostedPoolWindowsImage # Name of the image in your pool. If not specified, first image of the pool is used os: windows # OS of the image. Allowed values: windows, linux, macOS - containers: - playwright_container: - image: mcr.microsoft.com/playwright:v1.49.0-noble stages: - stage: Stage jobs: @@ -40,8 +37,6 @@ extends: targetPath: $(System.ArtifactsDirectory) artifactName: drop - container: playwright_container - variables: npm_config_cache: $(Pipeline.Workspace)/.npm @@ -66,22 +61,6 @@ extends: npm ci displayName: "Install package dependencies" - - script: | - npm run checkchange - displayName: "Check for the presence of changed files inside ./change" - - - script: | - npm run format:check - displayName: "Test Prettier format" - - script: | npm run build displayName: "Build workspaces" - - - script: | - npm run test - displayName: "Testing unit tests" - - - script: | - npm run test:validation - displayName: "Testing final validation" From 5079918c76b748d4920c0daf2fe4554bd1fcb5da Mon Sep 17 00:00:00 2001 From: Zacky Ma Date: Wed, 4 Dec 2024 10:15:26 -0800 Subject: [PATCH 4/5] docs: improve readme (#7042) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Pull Request ## 📖 Description Starting a local dev server for the website requires install and build in the root directory first. This change reflects that process. ### 🎫 Issues ## 👩‍💻 Reviewer Notes ## 📑 Test Plan ## ✅ Checklist ### General - [x] I have included a change request file using `$ npm run change` - [ ] I have added tests for my changes. - [ ] I have tested my changes. - [x] I have updated the project documentation to reflect my changes. - [x] I have read the [CONTRIBUTING](https://github.com/microsoft/fast/blob/master/CONTRIBUTING.md) documentation and followed the [standards](https://github.com/microsoft/fast/blob/master/CODE_OF_CONDUCT.md#our-standards) for this project. ## ⏭ Next Steps --- sites/website/README.md | 3 +++ sites/website/src/docs/getting-started/quick-start.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sites/website/README.md b/sites/website/README.md index 0e37946c835..de2efbfa0df 100644 --- a/sites/website/README.md +++ b/sites/website/README.md @@ -4,8 +4,11 @@ This website is built using [Docusaurus](https://docusaurus.io/), a modern stati ## Installation +Run the following commands in the **root directory**: + ```sh npm ci +npm run build ``` ## Local Development diff --git a/sites/website/src/docs/getting-started/quick-start.md b/sites/website/src/docs/getting-started/quick-start.md index e8338195013..f764d87ccb7 100644 --- a/sites/website/src/docs/getting-started/quick-start.md +++ b/sites/website/src/docs/getting-started/quick-start.md @@ -75,4 +75,4 @@ Now that the "hello-world" custom web component has been defined, it can be incl It's as simple as that! -Continue reading through the docs to understand all of the potential ways to use `@microsoft/fast-element` for your website or application. \ No newline at end of file +Continue reading through the docs to understand all of the potential ways to use `@microsoft/fast-element` for your website or application. From a894cf9477901e1ef18bd8c35baec81fd99ef98b Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Wed, 4 Dec 2024 10:43:25 -0800 Subject: [PATCH 5/5] Add roadmap section to the README (#7038) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Pull Request ## 📖 Description Per the communities request, we have included a link in the root README.md file to the roadmap of FAST Architecture. This roadmap is subject to change and updates and so will be kept updated in the GitHub project. ## ✅ Checklist ### General - [ ] I have included a change request file using `$ npm run change` - [ ] I have added tests for my changes. - [ ] I have tested my changes. - [x] I have updated the project documentation to reflect my changes. - [x] I have read the [CONTRIBUTING](https://github.com/microsoft/fast/blob/master/CONTRIBUTING.md) documentation and followed the [standards](https://github.com/microsoft/fast/blob/master/CODE_OF_CONDUCT.md#our-standards) for this project. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index dc58d4879d9..ddd456847f0 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,10 @@ We hope you're excited by the possibilities that FAST presents. But, you may be * "I want to look at a quick reference." * [Jump to the Cheat Sheet](https://fast.design/docs/resources/cheat-sheet) +## Roadmap + +Major features for the FAST project can be found in the [roadmap](https://github.com/orgs/microsoft/projects/240/views/1). + ## Joining the Community Looking to get answers to questions or engage with us in realtime? Our community is most active [on Discord](https://discord.gg/FcSNfg4). Submit requests and issues on [GitHub](https://github.com/Microsoft/fast/issues/new/choose), or join us by contributing on [some good first issues via GitHub](https://github.com/Microsoft/fast/labels/community:good-first-issue).