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 79abeb7 commit b12b1d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 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 All @@ -35,3 +37,4 @@ jobs:
- name: Fix permission on binaries artifacts
run: find . -type f -name 'twitch_exporter' -exec chmod +x {} +
- run: make docker
- run: docker run docker.io/damoun/twitch-exporter-linux-amd64:HEAD --help
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 docker.io/damoun/twitch-exporter-linux-amd64:main --help

0 comments on commit b12b1d2

Please sign in to comment.