master to main rename (#61)
This commit is contained in:
13
.github/workflows/defaultLabels.yml
vendored
13
.github/workflows/defaultLabels.yml
vendored
@ -3,7 +3,7 @@ name: setting-default-labels
|
|||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0/3 * * *"
|
- cron: "0 0/3 * * *"
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@ -13,24 +13,23 @@ jobs:
|
|||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v3
|
||||||
name: Setting issue as idle
|
name: Setting issue as idle
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.'
|
stale-issue-message: "This issue is idle because it has been open for 14 days with no activity."
|
||||||
stale-issue-label: 'idle'
|
stale-issue-label: "idle"
|
||||||
days-before-stale: 14
|
days-before-stale: 14
|
||||||
days-before-close: -1
|
days-before-close: -1
|
||||||
operations-per-run: 100
|
operations-per-run: 100
|
||||||
exempt-issue-labels: 'backlog'
|
exempt-issue-labels: "backlog"
|
||||||
|
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v3
|
||||||
name: Setting PR as idle
|
name: Setting PR as idle
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.'
|
stale-pr-message: "This PR is idle because it has been open for 14 days with no activity."
|
||||||
stale-pr-label: 'idle'
|
stale-pr-label: "idle"
|
||||||
days-before-stale: 14
|
days-before-stale: 14
|
||||||
days-before-close: -1
|
days-before-close: -1
|
||||||
operations-per-run: 100
|
operations-per-run: 100
|
||||||
|
120
.github/workflows/integration-tests.yml
vendored
120
.github/workflows/integration-tests.yml
vendored
@ -2,64 +2,64 @@ name: "Trigger Integration tests"
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
- 'releases/*'
|
- "releases/*"
|
||||||
jobs:
|
jobs:
|
||||||
trigger-integration-tests:
|
trigger-integration-tests:
|
||||||
name: Trigger Integration tests
|
name: Trigger Integration tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
HELM_3_8_0: "v3.8.0"
|
HELM_3_8_0: "v3.8.0"
|
||||||
HELM_3_7_2: "v3.7.2"
|
HELM_3_7_2: "v3.7.2"
|
||||||
HELM_3_5_0: "v3.5.0"
|
HELM_3_5_0: "v3.5.0"
|
||||||
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
|
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: npm install and build
|
- name: npm install and build
|
||||||
id: action-npm-build
|
id: action-npm-build
|
||||||
run: |
|
run: |
|
||||||
echo $PR_BASE_REF
|
echo $PR_BASE_REF
|
||||||
if [[ $PR_BASE_REF != releases/* ]]; then
|
if [[ $PR_BASE_REF != releases/* ]]; then
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
fi
|
fi
|
||||||
- name: Setup helm
|
- name: Setup helm
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: ${{ env.HELM_3_8_0 }}
|
version: ${{ env.HELM_3_8_0 }}
|
||||||
- name: Validate helm 3.8.0
|
- name: Validate helm 3.8.0
|
||||||
run: |
|
run: |
|
||||||
if [[ $(helm version) != *$HELM_3_8_0* ]]; then
|
if [[ $(helm version) != *$HELM_3_8_0* ]]; then
|
||||||
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.8.0"
|
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.8.0"
|
||||||
echo "HELM VERSION OUTPUT: $(helm version)"
|
echo "HELM VERSION OUTPUT: $(helm version)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "HELM VERSION $HELM_3_8_0 INSTALLED SUCCESSFULLY"
|
echo "HELM VERSION $HELM_3_8_0 INSTALLED SUCCESSFULLY"
|
||||||
fi
|
fi
|
||||||
- name: Setup helm 3.7.2
|
- name: Setup helm 3.7.2
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: ${{ env.HELM_3_7_2 }}
|
version: ${{ env.HELM_3_7_2 }}
|
||||||
- name: Validate 3.7.2
|
- name: Validate 3.7.2
|
||||||
run: |
|
run: |
|
||||||
if [[ $(helm version) != *$HELM_3_7_2* ]]; then
|
if [[ $(helm version) != *$HELM_3_7_2* ]]; then
|
||||||
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.7.2"
|
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.7.2"
|
||||||
echo "HELM VERSION OUTPUT: $(helm version)"
|
echo "HELM VERSION OUTPUT: $(helm version)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "HELM VERSION $HELM_3_7_2 INSTALLED SUCCESSFULLY"
|
echo "HELM VERSION $HELM_3_7_2 INSTALLED SUCCESSFULLY"
|
||||||
fi
|
fi
|
||||||
- name: Setup helm 3.5.0
|
- name: Setup helm 3.5.0
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
version: ${{ env.HELM_3_5_0 }}
|
version: ${{ env.HELM_3_5_0 }}
|
||||||
- name: Validate 3.5.0
|
- name: Validate 3.5.0
|
||||||
run: |
|
run: |
|
||||||
if [[ $(helm version) != *$HELM_3_5_0* ]]; then
|
if [[ $(helm version) != *$HELM_3_5_0* ]]; then
|
||||||
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.5.0"
|
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.5.0"
|
||||||
echo "HELM VERSION OUTPUT: $(helm version)"
|
echo "HELM VERSION OUTPUT: $(helm version)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "HELM VERSION $HELM_3_5_0 INSTALLED SUCCESSFULLY"
|
echo "HELM VERSION $HELM_3_5_0 INSTALLED SUCCESSFULLY"
|
||||||
fi
|
fi
|
||||||
|
4
.github/workflows/release-pr.yml
vendored
4
.github/workflows/release-pr.yml
vendored
@ -29,8 +29,8 @@ jobs:
|
|||||||
- name: Reset promotion branch
|
- name: Reset promotion branch
|
||||||
if: ${{ steps.extract-branch-status.outputs.exists == 'true' }}
|
if: ${{ steps.extract-branch-status.outputs.exists == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
git fetch origin master:master
|
git fetch origin main:main
|
||||||
git reset --hard master
|
git reset --hard main
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
rm -rf node_modules/
|
rm -rf node_modules/
|
||||||
|
18
.github/workflows/unit-tests.yml
vendored
18
.github/workflows/unit-tests.yml
vendored
@ -2,20 +2,20 @@ name: "Run unit tests."
|
|||||||
on: # rebuild any PRs and main branch changes
|
on: # rebuild any PRs and main branch changes
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
- 'releases/*'
|
- "releases/*"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
- 'releases/*'
|
- "releases/*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build: # make sure build/ci works properly
|
build: # make sure build/ci works properly
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Run L0 tests.
|
- name: Run L0 tests.
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm test
|
npm test
|
||||||
|
Reference in New Issue
Block a user