From 9768bf1f1930f4a0e8b1ca9ccd0cfadb1814a1d4 Mon Sep 17 00:00:00 2001 From: Philipp Jenni Date: Thu, 11 Jul 2024 15:11:54 +0200 Subject: [PATCH] chore: Change Workflow Files for ng10 Version --- .github/workflows/codeql.yml | 69 +++++++++++++++++----------------- .github/workflows/gh-pages.yml | 9 +++++ 2 files changed, 43 insertions(+), 35 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 686b8e494..ff4a953be 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,11 +13,11 @@ name: "CodeQL" on: push: - branches: [ "angular/13.2.x", "angular/*" ] + branches: ["angular/10.1.x", "angular/*"] pull_request: - branches: [ "angular/13.2.x", "angular/*" ] + branches: ["angular/10.1.x", "angular/*"] schedule: - - cron: '37 7 * * 4' + - cron: "37 7 * * 4" jobs: analyze: @@ -40,48 +40,47 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'csharp', 'javascript-typescript' ] + language: ["csharp", "javascript-typescript"] # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - config: | - paths-ignore: - - docs - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + config: | + paths-ignore: + - docs + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v3 - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 633ab847e..2cee87c42 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -43,6 +43,13 @@ jobs: path: ng13 sparse-checkout: | docs + - name: Checkout ng10 + uses: actions/checkout@v4 + with: + ref: angular/10.1.x + path: ng10 + sparse-checkout: | + docs - name: Build Documentation Structure run: | mkdir "docs" @@ -51,6 +58,8 @@ jobs: cp -R ng16/docs/bootstrap* "docs/ng16/" mkdir "docs/ng13" cp -R ng13/docs/bootstrap* "docs/ng13/" + mkdir "docs/ng10" + cp -R ng10/docs/bootstrap* "docs/ng10/" - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact