feat: put atest-collector into the image (#87) #297
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: Build | |
on: | |
- push | |
- pull_request | |
jobs: | |
Test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18.x | |
- uses: actions/checkout@v3.0.0 | |
- name: Test | |
run: | | |
go test ./... -coverprofile coverage.out | |
make test test-collector | |
- name: Report | |
if: github.actor == 'linuxsuren' | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
run: | | |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.out --force-coverage-parser go | |
Build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18.x | |
- uses: actions/checkout@v3.0.0 | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4.1.1 | |
with: | |
github_token: ${{ secrets.GH_PUBLISH_SECRETS }} | |
version: v1.14.0 | |
args: release --skip-publish --rm-dist --snapshot | |
- name: Image | |
run: make build-image |