From 7e6f48e5b46af956d9a69523a922af62f7dc0085 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Thu, 3 Feb 2022 11:29:11 -0500 Subject: [PATCH] master to main rename (#61) --- .github/workflows/defaultLabels.yml | 17 ++-- .github/workflows/integration-tests.yml | 122 ++++++++++++------------ .github/workflows/release-pr.yml | 6 +- .github/workflows/tag-and-release.yml | 2 +- .github/workflows/unit-tests.yml | 20 ++-- 5 files changed, 83 insertions(+), 84 deletions(-) diff --git a/.github/workflows/defaultLabels.yml b/.github/workflows/defaultLabels.yml index 37331b8..4404d7f 100644 --- a/.github/workflows/defaultLabels.yml +++ b/.github/workflows/defaultLabels.yml @@ -1,9 +1,9 @@ name: setting-default-labels -# Controls when the action will run. +# Controls when the action will run. on: 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 jobs: @@ -13,24 +13,23 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/stale@v3 name: Setting issue as idle with: 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-label: 'idle' + stale-issue-message: "This issue is idle because it has been open for 14 days with no activity." + stale-issue-label: "idle" days-before-stale: 14 days-before-close: -1 operations-per-run: 100 - exempt-issue-labels: 'backlog' - + exempt-issue-labels: "backlog" + - uses: actions/stale@v3 name: Setting PR as idle with: 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-label: 'idle' + stale-pr-message: "This PR is idle because it has been open for 14 days with no activity." + stale-pr-label: "idle" days-before-stale: 14 days-before-close: -1 operations-per-run: 100 diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index cea92be..f33fdee 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -2,64 +2,64 @@ name: "Trigger Integration tests" on: pull_request: branches: - - master - - 'releases/*' -jobs: - trigger-integration-tests: - name: Trigger Integration tests - runs-on: ubuntu-latest - env: - HELM_3_8_0: "v3.8.0" - HELM_3_7_2: "v3.7.2" - HELM_3_5_0: "v3.5.0" - PR_BASE_REF: ${{ github.event.pull_request.base.ref }} - steps: - - name: Check out repository - uses: actions/checkout@v2 - - name: npm install and build - id: action-npm-build - run: | - echo $PR_BASE_REF - if [[ $PR_BASE_REF != releases/* ]]; then - npm install - npm run build - fi - - name: Setup helm - uses: ./ - with: - version: ${{ env.HELM_3_8_0 }} - - name: Validate helm 3.8.0 - run: | - if [[ $(helm version) != *$HELM_3_8_0* ]]; then - echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.8.0" - echo "HELM VERSION OUTPUT: $(helm version)" - exit 1 - else - echo "HELM VERSION $HELM_3_8_0 INSTALLED SUCCESSFULLY" - fi - - name: Setup helm 3.7.2 - uses: ./ - with: - version: ${{ env.HELM_3_7_2 }} - - name: Validate 3.7.2 - run: | - if [[ $(helm version) != *$HELM_3_7_2* ]]; then - echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.7.2" - echo "HELM VERSION OUTPUT: $(helm version)" - exit 1 - else - echo "HELM VERSION $HELM_3_7_2 INSTALLED SUCCESSFULLY" - fi - - name: Setup helm 3.5.0 - uses: ./ - with: - version: ${{ env.HELM_3_5_0 }} - - name: Validate 3.5.0 - run: | - if [[ $(helm version) != *$HELM_3_5_0* ]]; then - echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.5.0" - echo "HELM VERSION OUTPUT: $(helm version)" - exit 1 - else - echo "HELM VERSION $HELM_3_5_0 INSTALLED SUCCESSFULLY" - fi \ No newline at end of file + - main + - "releases/*" +jobs: + trigger-integration-tests: + name: Trigger Integration tests + runs-on: ubuntu-latest + env: + HELM_3_8_0: "v3.8.0" + HELM_3_7_2: "v3.7.2" + HELM_3_5_0: "v3.5.0" + PR_BASE_REF: ${{ github.event.pull_request.base.ref }} + steps: + - name: Check out repository + uses: actions/checkout@v2 + - name: npm install and build + id: action-npm-build + run: | + echo $PR_BASE_REF + if [[ $PR_BASE_REF != releases/* ]]; then + npm install + npm run build + fi + - name: Setup helm + uses: ./ + with: + version: ${{ env.HELM_3_8_0 }} + - name: Validate helm 3.8.0 + run: | + if [[ $(helm version) != *$HELM_3_8_0* ]]; then + echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.8.0" + echo "HELM VERSION OUTPUT: $(helm version)" + exit 1 + else + echo "HELM VERSION $HELM_3_8_0 INSTALLED SUCCESSFULLY" + fi + - name: Setup helm 3.7.2 + uses: ./ + with: + version: ${{ env.HELM_3_7_2 }} + - name: Validate 3.7.2 + run: | + if [[ $(helm version) != *$HELM_3_7_2* ]]; then + echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.7.2" + echo "HELM VERSION OUTPUT: $(helm version)" + exit 1 + else + echo "HELM VERSION $HELM_3_7_2 INSTALLED SUCCESSFULLY" + fi + - name: Setup helm 3.5.0 + uses: ./ + with: + version: ${{ env.HELM_3_5_0 }} + - name: Validate 3.5.0 + run: | + if [[ $(helm version) != *$HELM_3_5_0* ]]; then + echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.5.0" + echo "HELM VERSION OUTPUT: $(helm version)" + exit 1 + else + echo "HELM VERSION $HELM_3_5_0 INSTALLED SUCCESSFULLY" + fi diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 1b781e6..f2b0b3e 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -29,8 +29,8 @@ jobs: - name: Reset promotion branch if: ${{ steps.extract-branch-status.outputs.exists == 'true' }} run: | - git fetch origin master:master - git reset --hard master + git fetch origin main:main + git reset --hard main - name: Install packages run: | rm -rf node_modules/ @@ -52,4 +52,4 @@ jobs: commit-message: Add node modules and new code for release title: ${{ github.event.inputs.release }} new release base: releases/${{ github.event.inputs.release }} - branch: create-release \ No newline at end of file + branch: create-release diff --git a/.github/workflows/tag-and-release.yml b/.github/workflows/tag-and-release.yml index d301a52..89bc15a 100644 --- a/.github/workflows/tag-and-release.yml +++ b/.github/workflows/tag-and-release.yml @@ -74,4 +74,4 @@ jobs: title: ${{ steps.get-new-tag.outputs.result }} release automatic_release_tag: ${{ steps.get-new-tag.outputs.result }} repo_token: "${{ secrets.GITHUB_TOKEN }}" - draft: true \ No newline at end of file + draft: true diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ca4a5d6..6a2f9a6 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -2,20 +2,20 @@ name: "Run unit tests." on: # rebuild any PRs and main branch changes pull_request: branches: - - master - - 'releases/*' + - main + - "releases/*" push: branches: - - master - - 'releases/*' + - main + - "releases/*" jobs: build: # make sure build/ci works properly runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Run L0 tests. - run: | - npm install - npm test \ No newline at end of file + - uses: actions/checkout@v1 + + - name: Run L0 tests. + run: | + npm install + npm test