Skip to content

Commit daaa741

Browse files
committed
chore: add the pull request yaml to use github workflows
Ticket: WP-4352
1 parent e5c1d09 commit daaa741

File tree

16 files changed

+51
-1481
lines changed

16 files changed

+51
-1481
lines changed

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'plugin:@typescript-eslint/recommended',
5+
'plugin:prettier/recommended',
6+
],
7+
parserOptions: {
8+
ecmaVersion: 2018,
9+
sourceType: 'module',
10+
},
11+
rules: {
12+
'@typescript-eslint/explicit-function-return-type': 'off',
13+
'@typescript-eslint/no-explicit-any': 'warn',
14+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
15+
},
16+
};

.github/workflows/build-and-test.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Build & Test (CI)
22

33
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
4+
workflow_call:
5+
inputs:
6+
node-version:
7+
description: 'Node.js version to use'
8+
type: string
9+
default: '20.18.0'
810

911
jobs:
1012
build:
@@ -17,7 +19,7 @@ jobs:
1719
- name: Setup Node.js
1820
uses: actions/setup-node@v4
1921
with:
20-
node-version: '20.18.0'
22+
node-version: ${{ inputs.node-version }}
2123
cache: 'yarn'
2224

2325
- name: Install dependencies
@@ -36,7 +38,7 @@ jobs:
3638
- name: Setup Node.js
3739
uses: actions/setup-node@v4
3840
with:
39-
node-version: '20.18.0'
41+
node-version: ${{ inputs.node-version }}
4042
cache: 'yarn'
4143

4244
- name: Install dependencies
@@ -55,7 +57,7 @@ jobs:
5557
- name: Setup Node.js
5658
uses: actions/setup-node@v4
5759
with:
58-
node-version: '20.18.0'
60+
node-version: ${{ inputs.node-version }}
5961
cache: 'yarn'
6062

6163
- name: Install dependencies
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: on_pr
2+
run-name: "on_pr: ${{ github.event.pull_request.number }}"
3+
4+
on:
5+
pull_request:
6+
7+
permissions:
8+
actions: read # required by BitGo/build-system
9+
contents: read # required by BitGo/build-system
10+
id-token: write # required by BitGo/build-system
11+
pull-requests: write # required by Grype PR commenter
12+
packages: read # required for ArgoCD deploy
13+
14+
jobs:
15+
build-and-test:
16+
name: Build & Test (CI)
17+
uses: ./.github/workflows/build-and-test.yaml

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist/
2-
node_modules/
2+
node_modules/
3+
coverage/

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"printWidth": 100,
5+
"tabWidth": 2,
6+
"semi": true
7+
}

coverage/lcov-report/base.css

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

0 commit comments

Comments
 (0)