Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions .github/workflows/auto-close.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
name: Stale Pull Requests
# After 30 days of no activity on a PR, the PR should be marked as stale,
# a comment made on the PR informing the author of the new status,
# and closed after 15 days if there is no further activity from the change to stale state.
on:
schedule:
- cron: '30 1 * * *' # run every day
workflow_dispatch: {}
permissions: {}
jobs:
stale-auto-close:
permissions:
contents: read # branch delete will be handled by the repo settings
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

---

name: Stale Pull Requests

# After 30 days of no activity on a PR, the PR should be marked as stale,
# a comment made on the PR informing the author of the new status,
# and closed after 15 days if there is no further activity from the change to stale state.
on:
schedule:
- cron: '30 1 * * *' # run every day
workflow_dispatch: {}
permissions: {}
jobs:
stale-auto-close:
permissions:
contents: read # branch delete will be handled by the repo settings
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Make a comment or update the PR to avoid closing PR after 15 days.'
days-before-pr-stale: 30
days-before-pr-close: 15
remove-pr-stale-when-updated: 'true'
close-pr-message: 'This pull request was automatically closed due to inactivity'
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Make a comment or update the PR to avoid closing PR after 15 days.'
days-before-pr-stale: 30
days-before-pr-close: 15
remove-pr-stale-when-updated: 'true'
close-pr-message: 'This pull request was automatically closed due to inactivity'
78 changes: 39 additions & 39 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
name: Auto Update PR
# On push to the main branch and support branches, update any branches that are out of date
# and have auto-merge enabled. If the branch is currently out of date with the base branch,
# it must be first manually updated and then will be kept up to date on future runs.
on:
push:
branches:
- main
- release-*
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-pull-requests:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Update pull requests
uses: open-edge-platform/orch-ci/.github/actions/pr_updater@76700c2fb6d547733b9218d9638dca43f5296399 # 0.1.52
with:
github_token: ${{ secrets.SYS_ORCH_GITHUB }}
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

---

name: Auto Update PR

# On push to the main branch and support branches, update any branches that are out of date
# and have auto-merge enabled. If the branch is currently out of date with the base branch,
# it must be first manually updated and then will be kept up to date on future runs.
on:
push:
branches:
- main
- release-*

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
update-pull-requests:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

- name: Update pull requests
uses: open-edge-platform/orch-ci/.github/actions/pr_updater@76700c2fb6d547733b9218d9638dca43f5296399 # 0.1.52
with:
github_token: ${{ secrets.SYS_ORCH_GITHUB }}
4 changes: 2 additions & 2 deletions .github/workflows/co-integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
VERSION: ${{ github.head_ref }} # Use the component branch that triggered the action for the test
steps:
- name: Checkout orch ci
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: open-edge-platform/orch-ci
path: ci
Expand All @@ -31,7 +31,7 @@ jobs:
persist-credentials: false

- name: Checkout cluster-tests for integration tests
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: open-edge-platform/cluster-tests
path: cluster-tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches:
- main
- release-*
workflow_dispatch:
workflow_dispatch:
permissions: {}
jobs:
post-merge:
Expand Down
168 changes: 84 additions & 84 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches:
- main
- release-*
workflow_dispatch:
workflow_dispatch:

permissions: {}

Expand All @@ -20,101 +20,101 @@ jobs:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.head_ref }}
persist-credentials: false

- name: "Setup"
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@a389c296f4a6dd2ff9d976007fd386950ab99605 # 0.1.49
with:
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
bootstrap_tools: "go,gotools,nodejs"

- name: Configure cache locations
run: |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
- name: Cache build artifact
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
${{ env.GOCACHE }}
${{ env.GOMODCACHE }}
~/.cache/golangci-lint
key: ${{ github.repository }}-lint-${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}

- name: Lint code
run: make lint
- name: Checkout PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.head_ref }}
persist-credentials: false

- name: "Setup"
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@a389c296f4a6dd2ff9d976007fd386950ab99605 # 0.1.49
with:
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
bootstrap_tools: "go,gotools,nodejs"

- name: Configure cache locations
run: |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV

- name: Cache build artifact
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
${{ env.GOCACHE }}
${{ env.GOMODCACHE }}
~/.cache/golangci-lint
key: ${{ github.repository }}-lint-${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}

- name: Lint code
run: make lint

build:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.head_ref }}
persist-credentials: false

- name: "Setup"
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@a389c296f4a6dd2ff9d976007fd386950ab99605 # 0.1.49
with:
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
bootstrap_tools: "go,gotools"

- name: Configure cache locations
run: |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV

- name: Cache build artifact
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
${{ env.GOCACHE }}
${{ env.GOMODCACHE }}
key: ${{ github.repository }}-build-${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}

- name: Build code
run: make build
- name: Checkout PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.head_ref }}
persist-credentials: false

- name: "Setup"
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@a389c296f4a6dd2ff9d976007fd386950ab99605 # 0.1.49
with:
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
bootstrap_tools: "go,gotools"

- name: Configure cache locations
run: |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV

- name: Cache build artifact
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
${{ env.GOCACHE }}
${{ env.GOMODCACHE }}
key: ${{ github.repository }}-build-${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}

- name: Build code
run: make build

test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.head_ref }}
persist-credentials: false

- name: "Setup"
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@a389c296f4a6dd2ff9d976007fd386950ab99605 # 0.1.49
with:
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
bootstrap_tools: "go,gotools"

- name: Configure cache locations
run: |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV

- name: Cache build artifact
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
${{ env.GOCACHE }}
${{ env.GOMODCACHE }}
key: ${{ github.repository }}-test-${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}

- name: Test code
run: make test
- name: Checkout PR
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.head_ref }}
persist-credentials: false

- name: "Setup"
uses: open-edge-platform/orch-ci/.github/actions/bootstrap@a389c296f4a6dd2ff9d976007fd386950ab99605 # 0.1.49
with:
gh_token: ${{ secrets.SYS_ORCH_GITHUB }}
bootstrap_tools: "go,gotools"

- name: Configure cache locations
run: |
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV

- name: Cache build artifact
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
${{ env.GOCACHE }}
${{ env.GOMODCACHE }}
key: ${{ github.repository }}-test-${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}

- name: Test code
run: make test

pre-merge:
permissions:
contents: read
Expand Down
Loading
Loading