Skip to content

Commit

Permalink
ci: test one binary on build
Browse files Browse the repository at this point in the history
  • Loading branch information
damoun committed Jul 29, 2024
1 parent 817d99f commit aaef91f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
with:
name: build
path: .build
- name: Test binary
run: .build/linux-amd64/twitch_exporter --help

docker:
needs: golang
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
with:
name: build
path: .build
- name: Test binary
run: .build/linux-amd64/twitch_exporter --help

publish:
needs: build
Expand Down Expand Up @@ -50,3 +52,4 @@ jobs:
make docker-tag-latest DOCKER_IMAGE_TAG="${{ github.ref_name }}"
make docker-publish DOCKER_IMAGE_TAG="latest"
make docker-manifest DOCKER_IMAGE_TAG="latest"
- run: docker run -it damoun/twitch-exporter:main --help

0 comments on commit aaef91f

Please sign in to comment.