Skip to content

Merge pull request #368 from streamdal/blinktag/367_disable_stdin_on_… #279

Merge pull request #368 from streamdal/blinktag/367_disable_stdin_on_…

Merge pull request #368 from streamdal/blinktag/367_disable_stdin_on_… #279

Workflow file for this run

name: master
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: '~1.18' # The Go version to download (if necessary) and use.
- name: Start up dependencies
run: docker-compose up -d rabbitmq kafka mosquitto-ssl mosquitto activemq redis pulsar
- name: Wait for dependencies to start up
uses: jakejarvis/wait-action@master
with:
time: '30s'
# - name: Install Code Climate reporter
# run: |
# sudo curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
# sudo chmod +x ./cc-test-reporter
# ./cc-test-reporter before-build
# - name: Master buld tests
# run: |
# make test/coverage
# - name: Upload coverage information
# run: |
# GIT_BRANCH=master ./cc-test-reporter after-build -p github.com/streamdal/plumber -r ${{ secrets.CC_TEST_REPORTER_ID }}
functional:
name: Run functional tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '~1.18' # The Go version to download (if necessary) and use.
- name: Start up dependencies
run: docker-compose up -d
- name: Wait for dependencies to start up
uses: jakejarvis/wait-action@master
with:
time: '60s'
- name: Test
env:
AWS_REGION: us-west-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
go run main.go server &
sleep 5
go test --tags=functional