From 138a7fd9e82c0152b7dff05f56ca41bd7e062743 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Tue, 9 Apr 2024 15:12:42 +0700 Subject: [PATCH] test Signed-off-by: NikitaSkrynnik --- .github/workflows/automerge.yaml | 14 ------ .github/workflows/ci.yaml | 46 +------------------ .github/workflows/codeql-analysis.yaml | 20 -------- .github/workflows/pr-for-updates.yaml | 11 ----- .github/workflows/release.yaml | 11 +---- .../update-dependent-repositories-gomod.yaml | 34 -------------- 6 files changed, 3 insertions(+), 133 deletions(-) delete mode 100644 .github/workflows/automerge.yaml delete mode 100644 .github/workflows/codeql-analysis.yaml delete mode 100644 .github/workflows/pr-for-updates.yaml delete mode 100644 .github/workflows/update-dependent-repositories-gomod.yaml 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 index 9fc348db9..c5e7a8b43 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,48 +7,4 @@ on: - "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 + uses: networkservicemesh/.github/.github/workflows/yamllint.yaml@main 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 index c0f71d49c..527964307 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,16 +28,9 @@ jobs: 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 - secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} - release-dependent-repositories: name: Release dependent repositories - needs: [get-tag, create-release] + needs: get-tag uses: networkservicemesh/.github/.github/workflows/release-dependent-repositories.yaml@main with: tag: ${{ needs.get-tag.outputs.tag }} @@ -58,4 +51,4 @@ jobs: "cmd-csi-driver", "cmd-dashboard-backend"] secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update-dependent-repositories-gomod.yaml b/.github/workflows/update-dependent-repositories-gomod.yaml deleted file mode 100644 index b0b235b89..000000000 --- a/.github/workflows/update-dependent-repositories-gomod.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -name: Update dependent repositories -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 - with: - dependent_repositories: | - ["sdk-k8s", - "sdk-kernel", - "cmd-nsmgr", - "cmd-nsmgr-proxy", - "cmd-registry-memory", - "cmd-registry-proxy-dns", - "cmd-nse-vfio", - "cmd-nse-remote-vlan", - "cmd-nsc-init", - "cmd-ipam-vl3", - "cmd-map-ip-k8s", - "cmd-admission-webhook-k8s", - "cmd-cluster-info-k8s", - "cmd-csi-driver", - "cmd-dashboard-backend"] - secrets: - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}