Skip to content

Commit

Permalink
Merge branch 'release/10.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed May 27, 2022
2 parents ab4ed7d + c42e053 commit 6d2bfc4
Show file tree
Hide file tree
Showing 81 changed files with 26,517 additions and 9,411 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
build:
name: Build
runs-on: windows-latest
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
Expand All @@ -21,10 +21,10 @@ jobs:
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.x
- uses: actions/cache@v2
id: cache
with:
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ master, develop ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master, develop ]
schedule:
- cron: '15 7 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'typescript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
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.

# 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#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ 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.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

- uses: actions/checkout@v1

- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.x
- uses: actions/cache@v2
id: cache
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, windows-2019, macOS-latest]

steps:
- uses: actions/checkout@v2
Expand All @@ -24,10 +24,10 @@ jobs:
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Use Node.js 14.x
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.x
- uses: actions/cache@v2
id: cache
with:
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ gulp.task('watch-back', (done) => {

gulp.task('watch-renderer', (done) => {
const mode = config.isRelease ? 'production' : 'development';
execute(`npx webpack --color true --mode "${mode}" --watch`, done);
execute(`npx webpack --mode "${mode}" --watch`, done);
});

gulp.task('watch-static', () => {
Expand All @@ -112,7 +112,7 @@ gulp.task('build-back', (done) => {

gulp.task('build-renderer', (done) => {
const mode = config.isRelease ? 'production' : 'development';
execute(`npx webpack --color true --mode "${mode}"`, done);
execute(`npx webpack --mode "${mode}"`, done);
});

gulp.task('copy-static', () => {
Expand Down
33 changes: 22 additions & 11 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
moduleNameMapper: {
'^@shared(.*)$': '<rootDir>/src/shared/$1',
'^@main(.*)$': '<rootDir>/src/main/$1',
'^@renderer(.*)$': '<rootDir>/src/renderer/$1',
'^@back(.*)$': '<rootDir>/src/back/$1',
'^@tests(.*)$': '<rootDir>/tests/$1'
}
};

import type { Config } from '@jest/types';

// Sync object
const config: Config.InitialOptions = {
verbose: true,
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleNameMapper: {
'^@shared(.*)$': '<rootDir>/src/shared/$1',
'^@main(.*)$': '<rootDir>/src/main/$1',
'^@renderer(.*)$': '<rootDir>/src/renderer/$1',
'^@back(.*)$': '<rootDir>/src/back/$1',
'^@tests(.*)$': '<rootDir>/tests/$1'
},
testPathIgnorePatterns: [
'<rootDir>/build/'
]
};

export default config;
Loading

0 comments on commit 6d2bfc4

Please sign in to comment.