Skip to content

Commit d803048

Browse files
Merge branch 'development' into fix/Snyk
2 parents de39ff3 + da958e3 commit d803048

24 files changed

+2827
-753
lines changed

.github/workflows/issues-jira.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Create Jira Ticket for Github Issue
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
issue-jira:
9+
runs-on: ubuntu-latest
10+
steps:
11+
12+
- name: Login to Jira
13+
uses: atlassian/gajira-login@master
14+
env:
15+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
16+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
17+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
18+
19+
- name: Create Jira Issue
20+
id: create_jira
21+
uses: atlassian/gajira-create@master
22+
with:
23+
project: ${{ secrets.JIRA_PROJECT }}
24+
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
25+
summary: Github | Issue | ${{ github.event.repository.name }} | ${{ github.event.issue.title }}
26+
description: |
27+
*GitHub Issue:* ${{ github.event.issue.html_url }}
28+
29+
*Description:*
30+
${{ github.event.issue.body }}
31+
fields: "${{ secrets.ISSUES_JIRA_FIELDS }}"

.github/workflows/jira.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/policy-scan.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Checks the security policy and configurations
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-policy:
7+
if: github.event.repository.visibility == 'public'
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
shell: bash
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Checks for SECURITY.md policy file
15+
run: |
16+
if ! [[ -f "SECURITY.md" || -f ".github/SECURITY.md" ]]; then exit 1; fi
17+
security-license:
18+
if: github.event.repository.visibility == 'public'
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
shell: bash
23+
steps:
24+
- uses: actions/checkout@master
25+
- name: Checks for License file
26+
run: |
27+
if ! [[ -f "LICENSE" || -f "License.txt" || -f "LICENSE.md" ]]; then exit 1; fi

.github/workflows/sast-scan.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

jest.config.ts

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,54 @@
11
/* eslint-disable */
22
export default {
3-
testEnvironment: 'jsdom',
43
displayName: 'contentstack-delivery',
54
preset: './jest.preset.js',
65
transform: {
7-
'^.+\\.[tj]s$': ['ts-jest', {
8-
tsconfig: '<rootDir>/tsconfig.spec.json',
9-
}],
6+
"^.+\\.[tj]s$": [
7+
"ts-jest",
8+
{
9+
tsconfig: "<rootDir>/tsconfig.spec.json",
10+
},
11+
],
1012
},
11-
moduleFileExtensions: ['ts', 'js', 'html'],
13+
moduleFileExtensions: ["ts", "js", "html"],
1214
collectCoverage: true,
13-
coverageDirectory: './reports/contentstack-delivery/coverage/',
14-
collectCoverageFrom: [
15-
"src/**",
16-
"!src/index.ts"
17-
],
15+
coverageDirectory: "./reports/contentstack-delivery/coverage/",
16+
collectCoverageFrom: ["src/**", "!src/index.ts"],
1817
coverageThreshold: {
1918
// global: {
2019
// branches: 95,
21-
// functions: 95,
22-
// lines: 95,
23-
// statements: 95
2420
// }
2521
},
2622
reporters: [
27-
'default',
23+
"default",
24+
[
25+
"jest-html-reporter",
26+
{
27+
pageTitle: "API Test Report",
28+
outputPath: "reports/sanity.html",
29+
includeFailureMsg: true,
30+
includeConsoleLog: true,
31+
},
32+
],
2833
[
29-
'jest-html-reporters',
34+
"jest-html-reporters",
3035
{
31-
publicPath: './reports/contentstack-delivery/html',
32-
filename: 'index.html',
36+
publicPath: "./reports/contentstack-delivery/html",
37+
filename: "index.html",
3338
expand: true,
3439
},
3540
],
3641
[
37-
'jest-junit',
42+
"jest-junit",
3843
{
39-
outputDirectory: 'reports/contentstack-delivery/junit',
40-
outputName: 'jest-junit.xml',
41-
ancestorSeparator: '',
42-
uniqueOutputName: 'false',
43-
suiteNameTemplate: '{filepath}',
44-
classNameTemplate: '{classname}',
45-
titleTemplate: '{title}',
44+
outputDirectory: "reports/contentstack-delivery/junit",
45+
outputName: "jest-junit.xml",
46+
ancestorSeparator: "",
47+
uniqueOutputName: "false",
48+
suiteNameTemplate: "{filepath}",
49+
classNameTemplate: "{classname}",
50+
titleTemplate: "{title}",
4651
},
4752
],
4853
],
49-
};
54+
};

0 commit comments

Comments
 (0)