Skip to content

Commit

Permalink
chore: Change Workflow Files for ng10 Version
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjenni committed Jul 11, 2024
1 parent b523ad0 commit 9768bf1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 35 deletions.
69 changes: 34 additions & 35 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}}"
9 changes: 9 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 9768bf1

Please sign in to comment.