Skip to content

Merge pull request #156 from dictybase-docker/dependabot/go_modules/g… #377

Merge pull request #156 from dictybase-docker/dependabot/go_modules/g…

Merge pull request #156 from dictybase-docker/dependabot/go_modules/g… #377

Workflow file for this run

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 }}