update docker-compose to "docker compose" #288
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: 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.21' # 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.21' # 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 |