Skip to content

Allow setting properties metadata for EventHubs target (closes #99) #1206

Allow setting properties metadata for EventHubs target (closes #99)

Allow setting properties metadata for EventHubs target (closes #99) #1206

Workflow file for this run

name: ci
on:
push:
branches:
- '*'
- '*/*'
- '**'
jobs:
test:
name: Compile & Test
strategy:
matrix:
go-version: [1.18]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache: true
- name: Snyk Setup
uses: snyk/actions/setup@master
- name: Run Snyk to check for vulnerabilities
run: snyk test --project-name=stream-replicator --severity-threshold=high
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Block Concurrent Executions of Integration Tests
if: ${{ env.NGROK_TOKEN != '' }}
uses: softprops/turnstyle@v1
with:
poll-interval-seconds: 10
same-branch-only: false
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Install ngrok
run: |
mkdir -p $GITHUB_WORKSPACE/bin
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip -d $GITHUB_WORKSPACE/bin/
$GITHUB_WORKSPACE/bin/ngrok authtoken ${{ secrets.NGROK_TOKEN }}
- name: Setup integration resources
run: export NGROK_DIR=$GITHUB_WORKSPACE/bin/ && make integration-up
- name: Run integration & unit tests
run: make integration-test
- name: Run linter
run: make lint
- name: Compile all targets
run: make all