From 2dbace4f7ed1dda0ab809493151c5f1890ad0ffa Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Tue, 13 Feb 2024 10:11:48 -0800 Subject: [PATCH] ci: remove scheduled workflows from v7 (#318) None of these workflows were running for the v7 branch, since Github only runs the default branch's schedule workflows. They should be removed, and the v8 branch modified to run both branches in a matrix instead. --- .github/workflows/daily-installation-test.yml | 40 ------------------- .github/workflows/daily-integration-tests.yml | 33 --------------- .github/workflows/daily-security-scan.yml | 31 -------------- .github/workflows/stale.yml | 10 ----- 4 files changed, 114 deletions(-) delete mode 100644 .github/workflows/daily-installation-test.yml delete mode 100644 .github/workflows/daily-integration-tests.yml delete mode 100644 .github/workflows/daily-security-scan.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/daily-installation-test.yml b/.github/workflows/daily-installation-test.yml deleted file mode 100644 index 32e7164f..00000000 --- a/.github/workflows/daily-installation-test.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: 'Install Relay Go Module' -on: - workflow_dispatch: - inputs: - relay-version: - description: "Relay version to install, e.g. 'latest'" - type: string - required: false - relay-major: - description: "Relay major version to install, e.g. 'v8'." - type: string - required: false - branch: - description: "Branch to test." - type: string - required: false - - schedule: - - cron: "0 8 * * *" - -jobs: - go-versions: - uses: ./.github/workflows/go-versions.yml - - install-relay: - name: ${{ format('Go Install Test (Go {0})', matrix.go-version) }} - needs: go-versions - runs-on: ubuntu-latest - strategy: - matrix: - go-version: ${{ fromJson(needs.go-versions.outputs.matrix) }} - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ inputs.branch }} - - uses: ./.github/actions/install-relay - with: - go-version: ${{ matrix.go-version }} - relay-version: ${{ inputs.relay-version }} - relay-major: ${{ inputs.relay-major }} diff --git a/.github/workflows/daily-integration-tests.yml b/.github/workflows/daily-integration-tests.yml deleted file mode 100644 index 7cd96149..00000000 --- a/.github/workflows/daily-integration-tests.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: 'Integration Tests' -on: - workflow_dispatch: - inputs: - go-version: - description: "Go version to use for building Relay." - required: false - type: string - branch: - description: "Branch to test." - required: false - type: string - - schedule: - - cron: "0 8 * * *" - -jobs: - go-versions: - uses: ./.github/workflows/go-versions.yml - - integration-test: - needs: go-versions - strategy: - # Let each job fail independently. - fail-fast: false - matrix: - environment: ['staging', 'production'] - - uses: ./.github/workflows/integration-test.yml - with: - environment: ${{ matrix.environment }} - go-version: ${{ inputs.go-version != '' && inputs.go-version || needs.go-versions.outputs.latest }} - branch: ${{ inputs.branch }} diff --git a/.github/workflows/daily-security-scan.yml b/.github/workflows/daily-security-scan.yml deleted file mode 100644 index 18979b43..00000000 --- a/.github/workflows/daily-security-scan.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Security Scan - -on: - workflow_dispatch: - inputs: - docker-image: - description: 'The image. Defaults to launchdarkly/ld-relay:v7.' - type: string - required: false - - schedule: - - cron: "0 8 * * *" - -jobs: - scan-relay: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Determine image - id: image - env: - IMAGE: ${{ inputs.docker-image }} - run: | - echo "value=${IMAGE:-launchdarkly/ld-relay:v7}" >> $GITHUB_OUTPUT - - - uses: aquasecurity/trivy-action@master - with: - image-ref: ${{ steps.image.outputs.value }} - format: 'table' - exit-code: '1' - ignore-unfixed: true diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 14118d4a..00000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: 'Close stale issues and PRs' -on: - workflow_dispatch: - schedule: - # Happen once per day at 1:30 AM - - cron: '30 1 * * *' - -jobs: - sdk-close-stale: - uses: launchdarkly/gh-actions/.github/workflows/sdk-stale.yml@main