From faf1902c97856b360697683f6b7eaed3e3bd4b76 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 20 Jun 2024 12:06:01 -0500 Subject: [PATCH 1/4] Added dependabot yaml for github actions. Updated to use self-hosted runnners Signed-off-by: Roger Barker --- .github/CODEOWNERS | 14 +++++++------- .github/dependabot.yml | 7 +++++++ .github/workflows/test-frontend.yaml | 4 ++-- 3 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c26df9cac..c2dd155f1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -11,16 +11,16 @@ # NOTE: Must be placed last to ensure enforcement over all other rules # Protection Rules for Github Configuration Files and Actions Workflows -/.github/ @hashgraph/release-engineering @hashgraph/release-engineering-managers -/.github/workflows/ @hashgraph/release-engineering @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov +/.github/ @hashgraph/devops-ci @hashgraph/release-engineering-managers +/.github/workflows/ @hashgraph/devops-ci @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov # Self-protection for root CODEOWNERS files (this file should not exist and should definitely require approval) -/CODEOWNERS @hashgraph/release-engineering @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov +/CODEOWNERS @hashgraph/devops-ci @hashgraph/release-engineering-managers # Protect the repository root files -/README.md @hashgraph/release-engineering @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov -**/LICENSE @hashgraph/release-engineering @hashgraph/release-engineering-managers +/README.md @hashgraph/devops-ci @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov +**/LICENSE @hashgraph/release-engineering-managers # Git Ignore definitions -**/.gitignore @hashgraph/release-engineering @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov -**/.gitignore.* @hashgraph/release-engineering @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov +**/.gitignore @hashgraph/devops-ci @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov +**/.gitignore.* @hashgraph/devops-ci @hashgraph/release-engineering-managers @jbair06 @ramto @SvetBorislavov diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..c8c5ac6e0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + open-pull-requests-limit: 10 \ No newline at end of file diff --git a/.github/workflows/test-frontend.yaml b/.github/workflows/test-frontend.yaml index 11d210083..60f85e18c 100644 --- a/.github/workflows/test-frontend.yaml +++ b/.github/workflows/test-frontend.yaml @@ -15,7 +15,7 @@ concurrency: jobs: build: name: Build front-end - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, medium, ephemeral] steps: - name: Checkout code @@ -44,7 +44,7 @@ jobs: key: build-artifacts-${{ github.sha }} test: name: ${{ matrix.test-suite }} - runs-on: ubuntu-latest + runs-on: [self-hosted, Linux, medium, ephemeral] needs: build strategy: fail-fast: false From f265d921fd40d8d8c06dd514fbcfdbacf9e5e3e9 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 20 Jun 2024 12:07:01 -0500 Subject: [PATCH 2/4] Updated syntax on pinned actions Signed-off-by: Roger Barker --- .github/workflows/test-frontend.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-frontend.yaml b/.github/workflows/test-frontend.yaml index 60f85e18c..4f4afd17e 100644 --- a/.github/workflows/test-frontend.yaml +++ b/.github/workflows/test-frontend.yaml @@ -19,10 +19,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up Node.js - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20 cache: "npm" @@ -38,7 +38,7 @@ jobs: working-directory: front-end - name: Cache Build Artifacts - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # pin@v4.0.2 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: front-end/release/linux-unpacked key: build-artifacts-${{ github.sha }} @@ -57,10 +57,10 @@ jobs: - WorkflowTests steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up Node.js - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # pin@v4.0.2 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: 20 cache: "npm" @@ -78,7 +78,7 @@ jobs: run: hedera start -d - name: Restore Build Artifacts - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # pin@v4.0.2 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: fail-on-cache-miss: true path: front-end/release/linux-unpacked From 6aaf5b7b0a918516b0098daa81ae9248403f1d3f Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 20 Jun 2024 12:21:54 -0500 Subject: [PATCH 3/4] Updating whitespace formatting Signed-off-by: Roger Barker --- .github/workflows/test-frontend.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-frontend.yaml b/.github/workflows/test-frontend.yaml index 4f4afd17e..eb56c50d6 100644 --- a/.github/workflows/test-frontend.yaml +++ b/.github/workflows/test-frontend.yaml @@ -15,7 +15,7 @@ concurrency: jobs: build: name: Build front-end - runs-on: [self-hosted, Linux, medium, ephemeral] + runs-on: [ self-hosted, Linux, medium, ephemeral ] steps: - name: Checkout code @@ -44,7 +44,7 @@ jobs: key: build-artifacts-${{ github.sha }} test: name: ${{ matrix.test-suite }} - runs-on: [self-hosted, Linux, medium, ephemeral] + runs-on: [ self-hosted, Linux, medium, ephemeral ] needs: build strategy: fail-fast: false From f1d1e475a820e6705545eb5707907bcbe24d032c Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 20 Jun 2024 12:30:15 -0500 Subject: [PATCH 4/4] Updated test-frontend.yml to add a workflow dispatch call. Signed-off-by: Roger Barker --- .github/workflows/test-frontend.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-frontend.yaml b/.github/workflows/test-frontend.yaml index eb56c50d6..80d3acfed 100644 --- a/.github/workflows/test-frontend.yaml +++ b/.github/workflows/test-frontend.yaml @@ -7,6 +7,7 @@ on: pull_request: branches: - main + workflow_dispatch: concurrency: group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}