Merge pull request #156 from dictybase-docker/dependabot/go_modules/g… #377
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 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 }} |