Merge pull request #104 from dictyBase/dependabot/go_modules/github.c… #61
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: Continuous integration | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
arangodb: | |
image: arangodb:3.10.9 | |
env: | |
ARANGO_ROOT_PASSWORD: rootpass | |
ports: | |
- 8529/tcp | |
steps: | |
- name: check out code | |
uses: actions/checkout@v3 | |
- name: set up golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '~1.20.6' | |
- name: unit test | |
run: go test -covermode=atomic -coverprofile=profile.cov -cpu 4 -v ./... | |
env: | |
GOPROXY: https://proxy.golang.org | |
ARANGO_USER: root | |
ARANGO_PASS: rootpass | |
ARANGO_HOST: localhost | |
ARANGO_PORT: ${{ job.services.arangodb.ports[8529] }} | |
- name: upload coverage to codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./profile.cov |