diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml deleted file mode 100644 index 4d902b51c..000000000 --- a/.github/workflows/automerge.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: automerge -on: - workflow_run: - types: - - completed - workflows: - - 'ci' -jobs: - automerge: - if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot'}} - uses: networkservicemesh/.github/.github/workflows/automerge.yaml@main - secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 9fc348db9..000000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,54 +0,0 @@ ---- -name: ci -on: - pull_request: - push: - branches: - - "release/**" -jobs: - yamllint: - uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main - - build-and-test: - uses: networkservicemesh/.github/.github/workflows/build-and-test.yaml@main - with: - os: '["ubuntu-latest", "macos-latest", "windows-latest"]' - - golangci-lint: - uses: networkservicemesh/.github/.github/workflows/golangci-lint.yaml@main - with: - linter-version: v1.53.3 - - exclude-fmt-errorf: - uses: networkservicemesh/.github/.github/workflows/exclude-fmt-errorf.yaml@main - - restrict-nsm-deps: - uses: networkservicemesh/.github/.github/workflows/restrict-nsm-deps.yaml@main - with: - allowed_repositories: "api" - - checkgomod: - uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main - - gogenerate: - uses: networkservicemesh/.github/.github/workflows/sdk-gogenerate.yaml@main - - exclude-replace: - uses: networkservicemesh/.github/.github/workflows/exclude-replace.yaml@main - - code-cov: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: ["ubuntu-latest", "macos-latest"] - steps: - - name: Check out code - uses: actions/checkout@v2 - - name: Setup Go - uses: actions/setup-go@v1 - with: - go-version: 1.20.5 - - run: | - go test -coverprofile=coverage-${{ matrix.os }}.txt -covermode=atomic -race ./... - - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml deleted file mode 100644 index 4db9fd208..000000000 --- a/.github/workflows/codeql-analysis.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -name: CodeQL - -on: - push: - branches: [main] - pull_request: - # The branches below must be a subset of the branches above - branches: [main] - schedule: - - cron: '0 5 * * 0' - -jobs: - analyze: - uses: networkservicemesh/.github/.github/workflows/codeql-analysis.yaml@main diff --git a/.github/workflows/pr-for-updates.yaml b/.github/workflows/pr-for-updates.yaml deleted file mode 100644 index 86c9ea965..000000000 --- a/.github/workflows/pr-for-updates.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Pull Request on update/* Branch Push -on: - push: - branches: - - update/** -jobs: - auto-pull-request: - uses: networkservicemesh/.github/.github/workflows/pr-for-updates.yaml@main - secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 7ecd3d80c..000000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,60 +0,0 @@ ---- -name: Release -on: - workflow_run: - types: - - completed - workflows: - - "ci" -jobs: - print-debug-info: - name: Print debug info for Release workflow - runs-on: ubuntu-latest - steps: - - uses: hmarr/debug-action@v2 - - get-tag: - name: Get tag - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release/') }} - outputs: - tag: ${{ steps.get-tag-step.outputs.tag }} - steps: - - name: Get tag - run: | - branch=${{github.event.workflow_run.head_branch}} - echo tag=${branch#release/} >> $GITHUB_OUTPUT - id: get-tag-step - - create-release: - name: Create release - needs: get-tag - uses: networkservicemesh/.github/.github/workflows/release.yaml@main - with: - tag: ${{ needs.get-tag.outputs.tag }} - secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} - - release-dependent-repositories: - name: Release dependent repositories - needs: [get-tag, create-release] - uses: networkservicemesh/.github/.github/workflows/release-dependent-repositories.yaml@main - with: - tag: ${{ needs.get-tag.outputs.tag }} - dependent_repositories: | - ["sdk-k8s", - "sdk-kernel", - "cmd-nsmgr", - "cmd-nsmgr-proxy", - "cmd-registry-memory", - "cmd-registry-proxy-dns", - "cmd-nse-remote-vlan", - "cmd-nse-vfio", - "cmd-nsc-init", - "cmd-ipam-vl3", - "cmd-map-ip-k8s", - "cmd-admission-webhook-k8s", - "cmd-cluster-info-k8s", - "cmd-csi-driver"] - secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/update-dependent-repositories-gomod.yaml b/.github/workflows/update-dependent-repositories-gomod.yaml index bd2022460..f2bbbf5e3 100644 --- a/.github/workflows/update-dependent-repositories-gomod.yaml +++ b/.github/workflows/update-dependent-repositories-gomod.yaml @@ -4,15 +4,10 @@ on: push: branches: - main - workflow_run: - types: - - completed - workflows: - - 'automerge' jobs: update-dependent-repositories: if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' || github.event_name == 'push' }} - uses: networkservicemesh/.github/.github/workflows/update-dependent-repositories-gomod.yaml@main + uses: NikitaSkrynnik/.github/.github/workflows/update-dependent-repositories-gomod.yaml@main with: dependent_repositories: | ["sdk-k8s", @@ -27,7 +22,6 @@ jobs: "cmd-ipam-vl3", "cmd-map-ip-k8s", "cmd-admission-webhook-k8s", - "cmd-cluster-info-k8s", - "cmd-csi-driver"] + "cmd-cluster-info-k8s"] secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} + token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} \ No newline at end of file