Skip to content

Commit 2eb2a37

Browse files
Vidya2606Vidya Reddy
andauthored
Vidya reddy prettier (#58)
* upgraded to Node16 * Enforce Prettier * code fix * jest version change and prettify code Co-authored-by: Vidya Reddy <[email protected]>
1 parent b474dc3 commit 2eb2a37

20 files changed

+11465
-11358
lines changed

.github/ISSUE_TEMPLATE/bug-report-feature-request.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ about: Create a report to help us improve
44
title: ''
55
labels: need-to-triage
66
assignees: '@aksatlanta'
7-
87
---
9-
10-
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
name: setting-default-labels
22

33
on:
4-
schedule:
5-
- cron: "0 0/3 * * *"
4+
schedule:
5+
- cron: '0 0/3 * * *'
66

77
jobs:
8-
label-issues:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/stale@v3
12-
name: Setting issue as idle
13-
with:
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.'
16-
stale-issue-label: 'idle'
17-
days-before-stale: 14
18-
days-before-close: -1
19-
operations-per-run: 100
20-
exempt-issue-labels: 'backlog'
21-
22-
- uses: actions/stale@v3
23-
name: Setting PR as idle
24-
with:
25-
repo-token: ${{ secrets.GITHUB_TOKEN }}
26-
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.'
27-
stale-pr-label: 'idle'
28-
days-before-stale: 14
29-
days-before-close: -1
30-
operations-per-run: 100
8+
label-issues:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v3
12+
name: Setting issue as idle
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.'
16+
stale-issue-label: 'idle'
17+
days-before-stale: 14
18+
days-before-close: -1
19+
operations-per-run: 100
20+
exempt-issue-labels: 'backlog'
21+
22+
- uses: actions/stale@v3
23+
name: Setting PR as idle
24+
with:
25+
repo-token: ${{ secrets.GITHUB_TOKEN }}
26+
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.'
27+
stale-pr-label: 'idle'
28+
days-before-stale: 14
29+
days-before-close: -1
30+
operations-per-run: 100
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
name: Integration test for setup-kubectl
22
on: # rebuild any PRs and main branch changes
3-
pull_request:
4-
branches:
5-
- main
6-
- "releases/*"
7-
push:
8-
branches:
9-
- main
10-
- "releases/*"
3+
pull_request:
4+
branches:
5+
- main
6+
- 'releases/*'
7+
push:
8+
branches:
9+
- main
10+
- 'releases/*'
1111

1212
jobs:
13-
run-integration-test:
14-
name: Validate release and master branch
15-
runs-on: ubuntu-latest
16-
env:
17-
KUBECONFIG: /home/runner/.kube/config
18-
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
19-
steps:
20-
- uses: actions/checkout@v2
21-
name: Checkout from PR branch
13+
run-integration-test:
14+
name: Validate release and master branch
15+
runs-on: ubuntu-latest
16+
env:
17+
KUBECONFIG: /home/runner/.kube/config
18+
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
19+
steps:
20+
- uses: actions/checkout@v2
21+
name: Checkout from PR branch
2222

23-
- id: action-npm-build
24-
name: npm install and build
25-
run: |
26-
echo $PR_BASE_REF
27-
if [[ $PR_BASE_REF != releases/* ]]; then
28-
npm install
29-
npm run build
30-
fi
23+
- id: action-npm-build
24+
name: npm install and build
25+
run: |
26+
echo $PR_BASE_REF
27+
if [[ $PR_BASE_REF != releases/* ]]; then
28+
npm install
29+
npm run build
30+
fi
3131
32-
- uses: actions/setup-python@v2
33-
name: Install Python
34-
with:
35-
python-version: "3.x"
32+
- uses: actions/setup-python@v2
33+
name: Install Python
34+
with:
35+
python-version: '3.x'
3636

37-
- name: Install requests library
38-
run: pip install requests
37+
- name: Install requests library
38+
run: pip install requests
3939

40-
- name: Validate kubectl setup
41-
run: python test/validate-kubectl.py !v1.15.1
40+
- name: Validate kubectl setup
41+
run: python test/validate-kubectl.py latest
4242

43-
- name: Setup kubectl
44-
uses: ./
45-
with:
46-
version: "v1.15.1"
43+
- name: Setup kubectl
44+
uses: ./
45+
with:
46+
version: 'v1.15.1'
4747

48-
- name: Validate kubectl setup
49-
run: python test/validate-kubectl.py 'v1.15.1'
48+
- name: Validate kubectl setup
49+
run: python test/validate-kubectl.py 'v1.15.1'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Run prettify'
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
prettier:
9+
name: Prettier Check
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v2
14+
15+
- name: Enforce Prettier
16+
uses: actionsx/prettier@v2
17+
with:
18+
args: --check .

.github/workflows/release-pr.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Create release PR
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
release:
7-
description: "Define release version (ex: v1, v2, v3)"
8-
required: true
4+
workflow_dispatch:
5+
inputs:
6+
release:
7+
description: 'Define release version (ex: v1, v2, v3)'
8+
required: true
99

1010
jobs:
11-
release-pr:
12-
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main
13-
with:
14-
release: ${{ github.event.inputs.release }}
11+
release-pr:
12+
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main
13+
with:
14+
release: ${{ github.event.inputs.release }}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Tag and create release draft
22

33
on:
4-
push:
5-
branches:
6-
- releases/*
4+
push:
5+
branches:
6+
- releases/*
77

88
jobs:
9-
tag-and-release:
10-
uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main
9+
tag-and-release:
10+
uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main

.github/workflows/unit-tests.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: "Run unit tests."
1+
name: 'Run unit tests.'
22
on: # rebuild any PRs and main branch changes
3-
pull_request:
4-
branches:
5-
- main
6-
- 'releases/*'
7-
push:
8-
branches:
9-
- main
10-
- 'releases/*'
3+
pull_request:
4+
branches:
5+
- main
6+
- 'releases/*'
7+
push:
8+
branches:
9+
- main
10+
- 'releases/*'
1111

1212
jobs:
13-
build: # make sure build/ci works properly
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v1
17-
18-
- name: Build and run L0 tests.
19-
run: |
20-
npm install
21-
npm test
13+
build: # make sure build/ci works properly
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
18+
- name: Build and run L0 tests.
19+
run: |
20+
npm install
21+
npm test

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# dependencies
2+
/node_modules
3+
coverage
4+
/lib

.prettierrc.json

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

CODE_OF_CONDUCT.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Microsoft Open Source Code of Conduct
2-
3-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4-
5-
Resources:
6-
7-
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8-
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9-
- Contact [[email protected]](mailto:[email protected]) with questions or concerns
1+
# Microsoft Open Source Code of Conduct
2+
3+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4+
5+
Resources:
6+
7+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9+
- Contact [[email protected]](mailto:[email protected]) with questions or concerns

0 commit comments

Comments
 (0)