Last active
January 7, 2020 08:45
-
-
Save higebu/9fc9d3982f0018d0c727cf2d69b3f03d to your computer and use it in GitHub Desktop.
GitHub Actions Workflow for Go and Cassandra
This file contains hidden or 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: test | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
services: | |
cassandra: | |
image: cassandra | |
ports: | |
- 9042 | |
- 7199 | |
options: --health-cmd 'cqlsh -e "USE system"' --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Set up Go 1.13 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.13 | |
id: go | |
- name: checkout | |
uses: actions/checkout@v1 | |
- name: go test | |
run: | | |
go test -v -cover . -cluster 127.0.0.1:${{ job.services.cassandra.ports['9042'] }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment