Skip to content

Commit

Permalink
ci: add v7 branch to matrix for installation tests + security scans (l…
Browse files Browse the repository at this point in the history
…aunchdarkly#319)

Sister PR: launchdarkly#318

This adds `v7` into the installation test + security scan scheduled
workflows.
  • Loading branch information
cwaldren-ld authored and moshegood committed Feb 22, 2024
1 parent c724076 commit 8d8fe74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 35 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/daily-installation-test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
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 * * *"

Expand All @@ -29,12 +14,12 @@ jobs:
strategy:
matrix:
go-version: ${{ fromJson(needs.go-versions.outputs.matrix) }}
relay-major: ['v7', 'v8']
fail-fast: false
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 }}
relay-version: 'latest'
relay-major: ${{ matrix.relay-major }}
1 change: 0 additions & 1 deletion .github/workflows/daily-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
integration-test:
needs: go-versions
strategy:
# Let each job fail independently.
fail-fast: false
matrix:
environment: ['staging', 'production']
Expand Down
20 changes: 5 additions & 15 deletions .github/workflows/daily-security-scan.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
name: Security Scan

on:
workflow_dispatch:
inputs:
docker-image:
description: 'The image. Defaults to launchdarkly/ld-relay:latest.'
type: string
required: false

schedule:
- cron: "0 8 * * *"

jobs:
scan-relay:
strategy:
matrix:
tag: ['latest', 'v7', 'v8']
fail-fast: false
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:latest}" >> $GITHUB_OUTPUT
- uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ steps.image.outputs.value }}
image-ref: launchdarkly/ld-relay:${{ matrix.tag }}
format: 'table'
exit-code: '1'
ignore-unfixed: true

0 comments on commit 8d8fe74

Please sign in to comment.