Skip to content

Commit

Permalink
Test local build in PRs (#101)
Browse files Browse the repository at this point in the history
Make sure that we test the binary resulting from sources in PRs.

Signed-off-by: Galo Navarro <[email protected]>
  • Loading branch information
srvaroa authored Nov 1, 2023
1 parent a8d63e2 commit d36f0e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/apply_labels.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Label PRs
name: Label PRs with published action as canary

on:
pull_request:

jobs:
build:
apply_labels:

runs-on: ubuntu-latest

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,11 @@ jobs:
- name: Test
run: make test

- name: Dockerize
run: docker build .
- name: Run local action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_CONFIG_PATH: ./.github/labeler.yml
run: ./action

- name: Check that the docker image builds
run: docker build . -t local

0 comments on commit d36f0e7

Please sign in to comment.