@ -1,19 +1,43 @@
name : Release (Develop)
name : Push to main
on :
on :
workflow_dispatch : {}
push:
push:
branches:
branches:
- main
- main
jobs:
jobs:
build:
build:
runs-on : ubuntu-latest
runs-on : ubuntu-latest
steps:
steps:
- uses : actions/checkout@v2
- uses : actions/checkout@v2
- name : Set up Go
uses : actions/setup-go@v2
with:
go-version : 1.15
- name : Build
run : go build -v ./...
test:
runs-on : ubuntu-latest
steps:
- uses : actions/checkout@v2
- name : Set up Go
uses : actions/setup-go@v2
with:
go-version : 1.15
- name : Test
run : go test -v -coverprofile coverage.out -covermode atomic ./...
- name : Publish coverage
uses : codecov/codecov-action@v1
with:
token : ${{ secrets.CODECOV_TOKEN }}
publish:
needs:
- build
- test
runs-on : ubuntu-latest
steps:
- uses : actions/checkout@v2
- uses : jerray/publish-docker-action@master
- uses : jerray/publish-docker-action@master
with:
with:
username : ${{ secrets.DOCKERHUB_USERNAME }}
username : ${{ secrets.DOCKERHUB_USERNAME }}