-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@v4
- name: set up golang
uses: actions/setup-go@v5
with:
go-version: '~1.20.6'
- run: go version
- name: unit test
run: go test -covermode=atomic -coverprofile=profile.cov -v ./...
env:
ARANGO_USER: root
ARANGO_PASS: rootpass
ARANGO_HOST: localhost
ARANGO_PORT: ${{ job.services.arangodb.ports[8529] }}
GOPROXY: https://proxy.golang.org
- name: upload coverage to codecov
uses: codecov/codecov-action@v3
with:
file: ./profile.cov
call-docker-build:
needs: test
uses: dictyBase/workflows/.github/workflows/docker-build-push.yaml@develop
secrets: inherit
with:
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}