Skip to content

feat(flink): Add logs command #1217

feat(flink): Add logs command

feat(flink): Add logs command #1217

Workflow file for this run

name: CI
on:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: |
make build
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: ^1.20
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 4m0s
vet:
name: Vet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Vet
run: go vet ./...
test:
name: Test
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: ^1.20
- name: Generated files
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make generate fmt
git diff --exit-code --numstat
- name: Run tests
run: |
make test
env:
GOPATH: /home/runner/work/cli/go
acceptance:
name: Acceptance
needs: [ test ]
runs-on: ubuntu-latest
steps:
- name: Checkout Acceptance
uses: actions/checkout@v2
with:
token: ${{ secrets.MEROXA_MACHINE }}
repository: meroxa/acceptance
path: acceptance
- name: Build And Run
working-directory: ./acceptance
env:
MEROXA_AUTH_CLIENT_ID: ${{ secrets.AUTH0_ACCEPTANCE_STAGING_CLIENT_ID }}
MEROXA_AUTH_DOMAIN: ${{ secrets.AUTH0_STAGING_DOMAIN }}
MEROXA_AUTH_AUDIENCE: ${{ secrets.AUTH0_STAGING_AUDIENCE }}
MEROXA_AUTH_CLIENT_SECRET: ${{ secrets.AUTH0_ACCEPTANCE_STAGING_CLIENT_SECRET }}
MEROXA_AUTH_PASSWORD: ${{ secrets.AUTH0_PASSWORD }}
MEROXA_AUTH_USERNAME: ${{ secrets.AUTH0_USERNAME }}
MEROXA_AUTH_PASSWORD2: ${{ secrets.AUTH0_PASSWORD2 }}
MEROXA_AUTH_USERNAME2: ${{ secrets.AUTH0_USERNAME2 }}
PG_URL: ${{ secrets.TEST_DB_URL }}
PRIVATE_PG_URL: ${{ secrets.TEST_PRIVATE_PG_URL }}
MYSQL_URL: ${{ secrets.TEST_MYSQL_URL }}
SQLSERVER_URL: ${{ secrets.TEST_SQLSERVER_URL }}
MEROXA_API_URL: "https://api.staging.meroxa.io"
BASTION_PRIVATE_KEY: ${{ secrets.TEST_BASTION_PRIVATE_KEY }}
BASTION_USER: "ec2-user"
BASTION_URL: ${{ secrets.TEST_BASTION_URL }}
run: |
docker build -t meroxa/acceptance --build-arg CLI_BRANCH=$GITHUB_HEAD_REF .
docker run \
-e MEROXA_AUTH_DOMAIN=${MEROXA_AUTH_DOMAIN} \
-e MEROXA_AUTH_CLIENT_ID=${MEROXA_AUTH_CLIENT_ID} \
-e MEROXA_AUTH_CLIENT_SECRET=${MEROXA_AUTH_CLIENT_SECRET} \
-e MEROXA_AUTH_PASSWORD=${MEROXA_AUTH_PASSWORD} \
-e MEROXA_AUTH_USERNAME=${MEROXA_AUTH_USERNAME} \
-e MEROXA_AUTH_PASSWORD2=${MEROXA_AUTH_PASSWORD2} \
-e MEROXA_AUTH_USERNAME2=${MEROXA_AUTH_USERNAME2} \
-e MEROXA_AUTH_AUDIENCE=${MEROXA_AUTH_AUDIENCE} \
-e ACCEPTANCE_TEST_POSTGRES_URL=${PG_URL} \
-e ACCEPTANCE_TEST_PRIVATE_POSTGRES_URL=${PRIVATE_PG_URL} \
-e ACCEPTANCE_TEST_MYSQL_URL=${MYSQL_URL} \
-e ACCEPTANCE_TEST_SQLSERVER_URL=${SQLSERVER_URL} \
-e ACCEPTANCE_TEST_BASTION_PRIVATE_KEY="${BASTION_PRIVATE_KEY}" \
-e ACCEPTANCE_TEST_BASTION_USER=${BASTION_USER} \
-e ACCEPTANCE_TEST_BASTION_URL=${BASTION_URL} \
-e ACCEPTANCE_TEST_API_HOST=${MEROXA_API_URL} \
meroxa/acceptance -test.v