From 8ec95da3c62e4874541ed5333ad4123cecb69b48 Mon Sep 17 00:00:00 2001 From: Jon Thysell Date: Tue, 17 Dec 2024 11:10:11 -0800 Subject: [PATCH] Add ADO Production CI (#1002) ## Description Adds a simple CI to build the (production) website, so we can start collecting CodeQL scan results. ### Why We need to get CodeQL scanning for the repo. Resolves #977 ## Screenshots N/A ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1002) --- .ado/ci.yml | 26 ++++++++++++++++++++++++++ CodeQL.yml | 7 +++++++ 2 files changed, 33 insertions(+) create mode 100644 .ado/ci.yml create mode 100644 CodeQL.yml diff --git a/.ado/ci.yml b/.ado/ci.yml new file mode 100644 index 000000000..809b8754f --- /dev/null +++ b/.ado/ci.yml @@ -0,0 +1,26 @@ +name: RNW Samples Production CI $(Date:yyyyMMdd).$(Rev:r) + +trigger: none +pr: none + +variables: + - name: Codeql.Enabled + value: true + - name: Codeql.Cadence + value: 120 # In hours, default to only run every 5 days + +pool: + name: rnw-pool-4 + demands: ImageOverride -equals rnw-img-vs2022-node18 + +steps: + - checkout: self + clean: false + + - script: yarn install --frozen-lockfile + displayName: Yarn Install (Website) + workingDirectory: ./website + + - script: yarn build + displayName: Yarn Build (Website) + workingDirectory: ./website diff --git a/CodeQL.yml b/CodeQL.yml new file mode 100644 index 000000000..7ccdbed50 --- /dev/null +++ b/CodeQL.yml @@ -0,0 +1,7 @@ +# This file is used to configure CodeQL alerts. +# See https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/codeql/configuring-codeql3000-ado-pipelines#excluding-external-libraries-test-files-generated-files-docs + +path_classifiers: + docs: + - "**/docs" + - "**/website/versioned_docs"