-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 946 Bytes
/
ci.yaml
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
name: Continuous build
on:
push:
branches:
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: set up golang
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: unit test
run: go test -parallel 4 -covermode=atomic -coverprofile=profile.cov -v ./...
- name: upload coverage to codecov
uses: codecov/codecov-action@v4
with:
file: ./profile.cov
token: ${{ secrets.CODECOV_TOKEN }}
call-docker-build:
needs: test
uses: dictyBase/workflows/.github/workflows/docker-cross-publish.yaml@develop
with:
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}
image: github-actions
dockerfile: build/package/Dockerfile
secrets:
dockeruser: ${{ secrets.DOCKERHUB_USER }}
dockerpass: ${{ secrets.DOCKER_PASS }}