ROX-25966: Make sender alias configurable #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: emailsender-central-compatibility | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'emailsender/**' | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths: | |
- 'emailsender/**' | |
jobs: | |
e2e-test-on-kind: | |
timeout-minutes: 45 | |
name: "Test on kind cluster" | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.head.repo.fork }} # do not run for PRs from forks | |
permissions: | |
id-token: write | |
contents: read | |
environment: development | |
steps: | |
- name: Cancel Previous Runs | |
uses: n1hility/cancel-previous-runs@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: Cache go module | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Login to Quay.io | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_RHACS_ENG_RO_USERNAME }} | |
password: ${{ secrets.QUAY_RHACS_ENG_RO_PASSWORD }} | |
- name: Checkout this repository | |
uses: actions/checkout@v4 | |
with: | |
path: acs-fleet-manager | |
fetch-depth: 0 | |
- name: Checkout stackrox/stackrox repository | |
uses: actions/checkout@v4 | |
with: | |
repository: stackrox/stackrox | |
path: stackrox | |
fetch-tags: true | |
fetch-depth: 0 | |
- name: Create Kind cluster" | |
uses: helm/kind-action@v1 | |
with: | |
cluster_name: kind | |
- name: Run Test | |
run: acs-fleet-manager/scripts/ci/central_compatibility/entrypoint.sh |