Skip to content

Commit e1be5e7

Browse files
github-actions[bot]dependabot[bot]Vidya2606Vidya ReddyOliverMKing
authored
v3 new release (#72)
* Bump ansi-regex from 5.0.0 to 5.0.1 (#56) Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](chalk/ansi-regex@v5.0.0...v5.0.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Vidya reddy prettier (#58) * upgraded to Node16 * Enforce Prettier * code fix * jest version change and prettify code Co-authored-by: Vidya Reddy <[email protected]> * Upgraded the ncc version (#61) Co-authored-by: Vidya Reddy <[email protected]> * Update README example to v3 (#60) * Bump @actions/core from 1.9.0 to 1.9.1 (#63) Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.9.0 to 1.9.1. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add the issue report and feature request form (#64) * syntax error fixes (#66) * added support message (#67) * Bump @actions/core (#68) to address https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * Add node modules and compiled JavaScript from main Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vidya Reddy <[email protected]> Co-authored-by: Vidya Reddy <[email protected]> Co-authored-by: Oliver King <[email protected]> Co-authored-by: Asa Gayle <[email protected]> Co-authored-by: Sumner Warren <[email protected]> Co-authored-by: Oliver King <[email protected]>
1 parent b196533 commit e1be5e7

27 files changed

+17606
-14517
lines changed

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

-3
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-
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Bug Report
2+
description: File a bug report specifying all inputs you provided for the action, we will respond to this thread with any questions.
3+
title: 'Bug: '
4+
labels: ['bug', 'triage']
5+
assignees: '@Azure/aks-atlanta'
6+
body:
7+
- type: textarea
8+
id: What-happened
9+
attributes:
10+
label: What happened?
11+
description: Tell us what happened and how is it different from the expected?
12+
placeholder: Tell us what you see!
13+
validations:
14+
required: true
15+
- type: checkboxes
16+
id: Version
17+
attributes:
18+
label: Version
19+
options:
20+
- label: I am using the latest version
21+
required: true
22+
- type: input
23+
id: Runner
24+
attributes:
25+
label: Runner
26+
description: What runner are you using?
27+
placeholder: Mention the runner info (self-hosted, operating system)
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: Logs
32+
attributes:
33+
label: Relevant log output
34+
description: Run in debug mode for the most verbose logs. Please feel free to attach a screenshot of the logs
35+
validations:
36+
required: true

.github/ISSUE_TEMPLATE/config.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: GitHub Action "setup-kubectl" Support
4+
url: https://github.com/Azure/setup-kubectl
5+
security: https://github.com/Azure/setup-kubectl/blob/main/SECURITY.md
6+
about: Please ask and answer questions here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Feature Request
2+
description: File a Feature Request form, we will respond to this thread with any questions.
3+
title: 'Feature Request: '
4+
labels: ['Feature']
5+
assignees: '@Azure/aks-atlanta'
6+
body:
7+
- type: textarea
8+
id: Feature_request
9+
attributes:
10+
label: Feature request
11+
description: Provide example functionality and links to relevant docs
12+
validations:
13+
required: true

.github/workflows/defaultLabels.yml

+25-25
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
+39-39
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'

.github/workflows/prettify-code.yml

+18
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

+9-9
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 }}

.github/workflows/tag-and-draft.yml

+5-5
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

+18-18
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

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -327,5 +327,6 @@ ASALocalRun/
327327

328328
# MFractors (Xamarin productivity tool) working folder
329329
.mfractor/
330+
node_modules
330331

331332
# Transpiled JS

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# dependencies
2+
/node_modules
3+
coverage
4+
/lib

.prettierrc.json

+8
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

+9-9
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)