Skip to content

crosstest-go

crosstest-go #424

Workflow file for this run

name: crosstest-go
on:
schedule:
- cron: '14 10 * * *' # Runs 14:10 UTC, 10:10 Eastern
workflow_dispatch: # support manual runs
inputs:
test_connect_go_branch:
description: 'Target connect-go branch to test (cannot include "/")'
required: false
default: 'main'
disable_open_issue:
description: 'Disable open issue on fail'
type: boolean
required: false
default: false
permissions:
contents: read
issues: write
jobs:
crosstest-go:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Docker Buildx # Docker Buildkit required for docker-compose
uses: docker/setup-buildx-action@v2
with:
driver: docker
install: true
- name: Setup environment variables for test
run: |
echo "TEST_CONNECT_GO_BRANCH=${{ github.event.inputs.test_connect_go_branch || 'main' }}" >> $GITHUB_ENV
echo "DISABLE_OPEN_ISSUE=${{ github.event.inputs.disable_open_issue || false }}" >> $GITHUB_ENV
- name: Test Go Clients With Latest Commit
run: make dockercomposetestgo # Make target includes clean-up
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
- name: Open Issue on Fail
uses: dblock/create-a-github-issue@v3
if: ${{ failure() && env.DISABLE_OPEN_ISSUE != 'true' }}
env:
GITHUB_TOKEN: ${{ github.token }}
with:
filename: .github/crosstest-issue-template.md
update_existing: true
search_existing: open